assignment2

advertisement
‫المملكة العربية السعودية‬
‫وزارة التعليم العالي‬
‫جامعة المجمعة‬
‫كلية علوم الحاسب وتقنية المعلومات‬
Kingdom of Saudi Arabia
Ministry of Higher Education
Majmaah University
Computer Science and Information Technology College
Due Assignment Thursday March 19
Assignment 2

Write a complete C++ program that asks the user to enter two numbers and enter an
operator (+ , - ,* , / ) then calculate the result depending on the entered operator.
(You should use switch).
Example of the output
Enter two numbers: 3 5
Enter an operator: *
The result is: 15
1
Download