Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. string IMIE;
  6. int ODP;
  7. int ODP2;
  8. int ODP3;
  9. int WIEK;
  10. int main()
  11. {
  12. cout << "Witaj w wielkim quizie o JPII" << endl;
  13. cout << "Podaj swoje imie:" << endl;
  14. cin >> IMIE;
  15. cout << "Podaj swoj wiek:" << endl;
  16. cin >> WIEK;
  17. if(WIEK>=16)
  18. {
  19. cout << "Milej zabawy" << endl;
  20. cout << IMIE << endl;
  21. }
  22. else
  23. {
  24. cout << "jestes za mlody wroc za kilka lat" << endl;
  25. cout << IMIE << endl;
  26. return 0;
  27. }
  28. cout << "Oto pierwsze pytanie!" << endl;
  29. cout << "Czy JPII gwalcil male dzieci?" << endl;
  30. cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
  31. cout << "Odpowiedz 1: TAK" << endl;
  32. cout << "Odpowiedz 2: NIE" << endl;
  33. cin >> ODP;
  34. if (ODP==1)
  35. {
  36. cout << "Gratulacje dobra odpowiedz!" << endl;
  37. }
  38. else
  39. {
  40. cout << "Niestety zla odpowiedz" << endl;
  41. }
  42. cout << "Kolejne pytanie" << endl;
  43. cout << "Pseldonim artystyczny JPII to:" << endl;
  44. cout << "Odpowiedz 1: lolek" << endl;
  45. cout << "Odpowiedz 2: Bestia z Wadowic" << endl;
  46. cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
  47. cin >> ODP2;
  48. if (ODP2==2)
  49. {
  50. cout << "Gratulacje dobra odpowiedz!" << endl;
  51. cout << "Dobrze ci idzie" << endl;
  52. cout << IMIE << endl;
  53. }
  54. else
  55. {
  56. cout << "Niestety to zla odpowiedz" << endl;
  57. }
  58. cout << "Oto trzecie pytanie w quizie o JPII" << endl;
  59. cout << "Co uwielbial jan pawel?" << endl;
  60. cout << "Odpowiedz 1: male dzieci" << endl;
  61. cout << "Odpowiedz 2: kremowki" << endl;
  62. cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
  63. cin >> ODP3;
  64. if (ODP3=1)
  65. {
  66. cout << "Gratulacje dobra odpowiedz!" << endl;
  67. cout << "Dobrze ci idzie" << endl;
  68. cout << IMIE << endl;
  69. }
  70. else
  71. {
  72. cout << "Niestety to zla odpowiedz" << endl;
  73. }
  74.  
  75.  
  76.  
  77.  
  78. cout << "Dziekujemy za udzial w quizie" << endl;
  79. cout << IMIE;
  80.  
  81. return 0;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement