Advertisement
zort56

Untitled

Jan 1st, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int l1;
  7. int l2;
  8. char x;
  9. int xd;
  10. cout << "Podaj pls pierwszo liczbe: ";
  11. cin >> l1;
  12. cout << "Spoko, to teraz drugo: ";
  13. cin >> l2;
  14. cout << "No zajebiscie, podales liczby: " << l1 << " i " << l2 << " \n";
  15. cout << "Co chcesz z nimi zrobic?\nD = Dodac\nO = Odjac\nM = Pomnozyc\nP = Podzielic\n\n?\n\n";
  16. cin >> x;
  17.  
  18. }
  19.  
  20. void xd()
  21. {
  22. if (x == 'D' || x == 'd')
  23. {
  24. cout << "Wynik dodawania to " << l1 + l2 << "\n";
  25. system("pause");
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement