Homework 3: Write a program in e language to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at each time you are going to execute the program. After you execute the program separately at each time your run the program the output look like below: Al-Fa amine Mhedeter rt of Enter Enter Enter Enter to add betueen tuo nunbers - to subtract betueen tuo nunhers - to nultiply betueen tuo nunbers to dividebetueen tuo nunhers Enter the operat ion 1+ Enter the 1st nunber 12.3 Enter the 2nd nunber 15.6 The result is 7.908 Press any ke y to cont inue..- OR Enter Enter Enter Enter * te add hetueen tue nunbers te subtract hetueen tu nunbers - te nult iply betueen tue nunbers * te divide betueen tue nunbers Enter the operat ion 1- Enter the ist nunber 12.3 Enter the 2nd nunber 15.6 The result is -3.30

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
icon
Related questions
Question
幻令ll
イ1:EY
9051aa5b780a24e112042a7f3fd8fe...
5 من 7
Homework 3:
Write a program in c language to calculate two real numbers. The operation you are going to
used are "add, subtract, multiple and division" and it is going to be optional to calculate the
two numbers separately at each time you are going to execute the program.
After you execute the program separately at each time your run the program the output look like
below:
Al-Fa
amine Methedel
Enter
Enter
Enter
Enter
+ to add betveen tuo nunbers
- to subtract betueen tuo nunbers
- to multiply betueen tuo nunbers
/ to divide betveen tuo nunbers
Enter the operat ion i+
Enter the ist nunher :2.3
Enter the 2nd nunber :5.6
The result is 7.900
Press any key to cont inue. -
OR
Enter
Enter
Enter
Enter
• ta add hetueen tuo nunbers
- to subtract betueen tuo nunbers
- to nultiply betnen tuo
I to diuide betueen tuo nunbers
Enter the operation :-
Enter the ist nunber :2.3
Enter the 2nd nunber 15.6
The result is -3.308
Press any key to cont
Transcribed Image Text:幻令ll イ1:EY 9051aa5b780a24e112042a7f3fd8fe... 5 من 7 Homework 3: Write a program in c language to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at each time you are going to execute the program. After you execute the program separately at each time your run the program the output look like below: Al-Fa amine Methedel Enter Enter Enter Enter + to add betveen tuo nunbers - to subtract betueen tuo nunbers - to multiply betueen tuo nunbers / to divide betveen tuo nunbers Enter the operat ion i+ Enter the ist nunher :2.3 Enter the 2nd nunber :5.6 The result is 7.900 Press any key to cont inue. - OR Enter Enter Enter Enter • ta add hetueen tuo nunbers - to subtract betueen tuo nunbers - to nultiply betnen tuo I to diuide betueen tuo nunbers Enter the operation :- Enter the ist nunber :2.3 Enter the 2nd nunber 15.6 The result is -3.308 Press any key to cont
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
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
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage