Question: Task 2: a) Write a C program in a single function main that reads an integer number from keyboard and respond to the questions: i.

Task 2: a) Write a C program in a single function main that reads an integer number from keyboard and respond to the questions: i. is the number a multiple of 22 ii. Is the number a multiple of 3? iii. Is the number a multiple of 5? iv. Is the number a multiple of 7? By displaying on the screen a zero when the answer to the question is false or any other number when true (Hint: you can use the operator module) b) Convert the previous C program into a program that uses FUNCTIONS. You can create four different functions or you can do it with a single function as well (Hint: Think about an extra parameter)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
