This is a C++ coding language
Assignment 5: Looping
Your goal is to take in data from the user, write equations, anduse loops for validation and output.
Ask the user for a number between 1-10. Validate if this numberis correct using a loop. Ask the user for another number between1-10. Validate if this number is correct using a loop. Multiply the2 numbers from the user together and use this number in a loop toexecute that many times. Inside the loop you should print yourname.
Example output:
Enter a number (between 1 and 10): 3
Enter a number (between 1 and 10): 2
First Last nameFirst Last nameFirst Last nameFirst Last nameFirst Last nameFirst Last name
This is a C++ coding language Assignment 5: Looping Your goal is to take in data from the user, write equations, and use
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am