Question: Write a program in C that accepts two integer inputs from a user (through scanf() ), and assigns them to integer variables a and b,
Write a program in C that accepts two integer inputs from a user (through scanf() ), and assigns them to integer variables a and b, where a is the numerator and b is the denominator. The program declares two more int variables, c and d, where c is assigned the result of a/b and d is assigned the result of a%b. Print out the values of the integers entered, the result of their division and the result of their mod division within appropriately descriptive text (e.g., The result of an integer division of divided by is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
