thoughtful 1
Added by Erin B.
Step 1
Step 1: Prompt the user to input the first integer, \( a \). Show more…
Show all steps
Your feedback will help us improve your experience
Florencia Cuzmar and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
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.
Shelayah R.
Write a program with two input values. The program should display the sum, difference, quotient, product, and average of the two numbers.
Liam H.
Create a program that will accept two numbers. Display the sum, difference, product, and quotient.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD