Question: Write a C program to pass two floating numbers from a user to a function that checks whether the passed number is divisible by number

Write a C program to pass two floating numbers from a user to a function that checks whether the passed number is divisible by number2 or not and save the result in variable res. Make the function return the res, then print the result of the function.
For example:
Input: number1: 15.143, number2: 8.782.
Output: number is not divisible by number2 with a result [7].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!