Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int l1;
- int l2;
- char x;
- int xd;
- cout << "Podaj pls pierwszo liczbe: ";
- cin >> l1;
- cout << "Spoko, to teraz drugo: ";
- cin >> l2;
- cout << "No zajebiscie, podales liczby: " << l1 << " i " << l2 << " \n";
- cout << "Co chcesz z nimi zrobic?\nD = Dodac\nO = Odjac\nM = Pomnozyc\nP = Podzielic\n\n?\n\n";
- cin >> x;
- }
- void xd()
- {
- if (x == 'D' || x == 'd')
- {
- cout << "Wynik dodawania to " << l1 + l2 << "\n";
- system("pause");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement