Computer Science, asked by santhoshking841, 5 hours ago

Define six functions ( named as two, three, four, five, six and seven) and each function has a standard structure with one integer input and a return type as integer. Each function would check the divisibility of the number sent as argument (i.e. whether the argument passed is divisible by the number the function name respresents). The odd numbered functions (according to name) should be sent to a function named odd and even number function should be send to a function named even. The odd function should print the odd numbers that the given integer was divisible by and vice-versa for even functions. Eg. int three(int i) { if (i%3==0) //divisibility by 3 flag=1; else flag=0; return flag; } similary for two, four, five, six and seven odd(get the odd numbered functions as input) { Check how many odd values divide the number given as input } even(get the even numbered functions as input) { Check how many even values divide the number given as input }​

Answers

Answered by gokulsanjayreddy
0

There are three types of functions:-

Injection or one to one function

Surjective or one to many function

Bijective function

Similar questions