Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int menu=0,wynik=0,a=0,b=0,c=0;
  8. cout << "Dostępne opcje:" << endl;
  9. cout << "1) dodawanie" << endl;
  10. cout << "2) odejmowanie" << endl;
  11. cout << "3) nic" << endl;
  12. cout << "4) nic" << endl;
  13. cout << "Wybierz opcje: " << endl;
  14. cin >> menu;
  15. system("cls");
  16. if (menu == 1) {
  17. cout << "Wybrales dodawanie, podaj liczbe pierwsza: ";
  18. cin >> a;
  19. cout << "=================\n";
  20. cout << "Liczba pierwsza: " << a << endl;
  21. cout << "=================\n";
  22. cout << "Podaj liczbe druga: ";
  23. cin >> b;
  24. system("cls");
  25. cout << "=================\n";
  26. cout << "Liczba pierwsza: " << a << endl;
  27. cout << "Liczba druga: " << b << endl;
  28. cout << "=================\n";
  29. cout << "===== OPCJE =====\n";
  30. a + b == wynik;
  31. cout << "test: " << wynik << endl;
  32. cout << "1) Wykonaj\n2) Zmien liczby\n3) Zakoncz\n";
  33. int opcja;
  34. cin >> opcja;
  35. if (opcja == 1)
  36. {
  37. a + b == wynik;
  38. system("cls");
  39. cout << wynik;
  40. }
  41. if (opcja == 2)
  42. {
  43.  
  44. }
  45. if (opcja == 3)
  46. {
  47. system("cls");
  48. }
  49. }
  50. if (menu == 2) {
  51. cout << "Wybrales odejmowanie" << endl;
  52. }
  53. if (menu == 3) {
  54. cout << "Wybrales nic" << endl;
  55. }
  56. if (menu == 4) {
  57. cout << "Wybrales nic" << endl;
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement