Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
1. Write a program that uses a for loop to count from 0-10 and show the numbers on the screen. In the same file, re-write
1. Write a program that uses a "for" loop to count from 0-10 and show the numbers on the screen. In the same file, re-write this program without using a "for" loop. 2. Write a program that performs arithmetic division. The program will use two integers, a and b (obtained by the user) and will perform the division a/b, store the result in another integer c and show the result of the division using cout. In a similar way, extend the program to add, subtract, multiply, do modulo and power using integers a and b. Modify your program so that when it starts, it asks the user which type of calculation it should do, then asks for the 2 integers, then runs the user selected calculation and outputs the result in a user friendly formatted manner
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started