1. Engineering
  2. Computer Science
  3. write c program...

Question: write c program...

Question details
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 continue reading until xey. For each pair, your program should output the following: If x>y, calculate xy 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
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution