About 137 results (0.0006 seconds)

Write a function which accepts a number and three flags as parameters. If the number is even,…

Write a function which accepts a number and three flags as parameters. If the number is even, set the first flag to 1. 
If the number is prime, set the second flag to 1. If the number is divisible by 3 or 7, set the third flag to 1. In main, accept an integer and use 
this function to check if it is even, prime and divisible by 3 or 7. (Hint : pass the addresses of flags to the function)