Skip to content

Commit 807dc49

Browse files
committed
using namespace std;
1 parent 4beaca6 commit 807dc49

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

main.cpp

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
#include <iostream>
22
#include <cmath>
33

4+
using namespace std;
5+
46
int 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
}

0 commit comments

Comments
 (0)