Question: Experiment 3-2: Write a program that will read two integers A and B, and print out multiples of A from A to (Ax B). The
Experiment 3-2: Write a program that will read two integers A and B, and print out multiples of A from A to (Ax B). The algorithm that the program will use is given as follows: 1. Get A from the user 2. Get B from the user. If B 0, then terminate. 3. Set sentinel value S A B 4. Set multiple m A 5. Loop: (a) Print m (b) If m S, then go to the next step (c) Otherwise, set m am+A, and then repeat the loop. 6. Terminate. You must submit the program printed with screenshot of Console after run the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
