Write a program that asks the user to enter two integers and prints the Difference, Product, Area of an Ellipse, and Average of these numbers. Here is an example of the execution of the program: Enter the first number: 23 Enter the second number: 17 ********** The results are: Difference: 6 Product: 391 Area of an Ellipse: 1228 Average: 20

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 7PP
icon
Related questions
Question

Warm-up: Integer Operations (with C++)

Write a program that asks the user to enter two integers and prints the Difference, Product, Area of an Ellipse, and Average of these numbers.

Here is an example of the execution of the program:

Enter the first number: 23
Enter the second number: 17
**********
The results are:
Difference: 6
Product: 391
Area of an Ellipse: 1228
Average: 20

 

 

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning