Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- float pas ,sk1 ,sk2 , rezultatas ;
- cout << "**Calculator, Made by Valdas Vabolis**\n" << endl;
- cout << "Choose what you want to do : \n" << endl;
- cout << "Add - 1" << endl;
- cout << "Subtract - 2" << endl;
- cout << "Multiply - 3" << endl;
- cout << "Divide - 4" << endl;
- cout << "Involute - 5" << endl;
- cin >> pas;
- if (pas == 1)
- {
- cout << "You want to add" << endl;
- cout << "Enter the first number" << endl;
- cin >> sk1;
- cout << "Enter the second number" << endl;
- cin >> sk2;
- rezultatas = sk1 + sk2;
- cout << " This combination equals " << rezultatas << endl;
- }
- else if (pas == 2)
- {
- cout << "You want to subtract" << endl;
- cout << "Enter the first number " << endl;
- cin >> sk1;
- cout << "Enter the second number " << endl;
- rezultatas = sk1 - sk2;
- cout << " This combination equals " << rezultatas << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement