File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#include < iostream>
22#include < cmath>
33
4+ using namespace std ;
5+
46int main ()
57{
6- std:: cout << " THE FIRST EXAMPLE MATH DISPLAY!\n " ;
7- std:: cout << " Hi, please enter two whole numbers: " ;
8+ cout << " THE FIRST EXAMPLE MATH DISPLAY!\n " ;
9+ cout << " Hi, please enter two whole numbers: " ;
810
911 int x,y;
1012
11- std:: cin >> x >> y;
12- std:: cout << " Addition: " << x + y << std:: endl;
13- std:: cout << " Subtraction: " << x - y << std:: endl;
14- std:: cout << " Multiplication: " << x * y << std:: endl;
15- std:: cout << " Division: " << x / y << std:: endl;
16- std:: cout << " Remainder: " << x % y << std:: endl;
17- std:: cout << " Square Root: " << sqrt (x) << std:: endl;
18- std:: cout << " Square: " << pow (x, y) << std:: endl;
13+ cin >> x >> y;
14+ cout << " Addition: " << x + y << endl;
15+ cout << " Subtraction: " << x - y << endl;
16+ cout << " Multiplication: " << x * y << endl;
17+ cout << " Division: " << x / y << endl;
18+ cout << " Remainder: " << x % y << endl;
19+ cout << " Square Root: " << sqrt (x) << endl;
20+ cout << " Square: " << pow (x, y) << endl;
1921
2022 return 0 ;
2123}
You can’t perform that action at this time.
0 commit comments