Skip to content

Commit

Permalink
Remove using std
Browse files Browse the repository at this point in the history
  • Loading branch information
kbuffardi committed Aug 30, 2023
1 parent 48adf7f commit f04e00c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
#include <iostream>
#include <cmath>

using std::cin;
using std::cout;
using std::endl;

int main()
{
cout<<"Hi, please enter two whole numbers: ";

int x,y;

cin >> x >> y;
cout << "Addition: " << x + y << endl;
cout << "Subtraction: " << x - y << endl;
cout << "Multiplication: " <<x * y << endl;
cout << "Division: " << x / y << endl;
cout << "Remainder: " <<x % y << endl;
cout << "Square Root: " << sqrt(x) << endl;
cout << "Square: " << pow(x, y) << endl;
std::cin >> x >> y;
std::cout << "Addition: " << x + y << std::endl;
std::cout << "Subtraction: " << x - y << std::endl;
std::cout << "Multiplication: " <<x * y << std::endl;
std::cout << "Division: " << x / y << std::endl;
std::cout << "Remainder: " <<x % y << std::endl;
std::cout << "Square Root: " << sqrt(x) << std::endl;
std::cout << "Square: " << pow(x, y) << std::endl;

return 0;
}

0 comments on commit f04e00c

Please sign in to comment.