Question: Write C Program CH-6 REPETITION AND LOOP STATEMENTS-I1 EXERCISE 6-8 Write a program that will read two integer numbers x and y ata time and
CH-6 REPETITION AND LOOP STATEMENTS-I1 EXERCISE 6-8 Write a program that will read two integer numbers x and y ata time and continue reading until xey. For each pair, your program should output the following: If x>y, calculate x'y by summation (Do not use multiplication operator). Txcy, calculate y%x by subtraction (Do not use remainder operator). Sample Run: Enter two integer numbers: 5 2 5*2 is 10 Enter two integer numbers 25 5962 is 1 Enter two integer numbers: 5 5 Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
