Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string IMIE;
- int ODP;
- int ODP2;
- int ODP3;
- int WIEK;
- int main()
- {
- cout << "Witaj w wielkim quizie o JPII" << endl;
- cout << "Podaj swoje imie:" << endl;
- cin >> IMIE;
- cout << "Podaj swoj wiek:" << endl;
- cin >> WIEK;
- if(WIEK>=16)
- {
- cout << "Milej zabawy" << endl;
- cout << IMIE << endl;
- }
- else
- {
- cout << "jestes za mlody wroc za kilka lat" << endl;
- cout << IMIE << endl;
- return 0;
- }
- cout << "Oto pierwsze pytanie!" << endl;
- cout << "Czy JPII gwalcil male dzieci?" << endl;
- cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
- cout << "Odpowiedz 1: TAK" << endl;
- cout << "Odpowiedz 2: NIE" << endl;
- cin >> ODP;
- if (ODP==1)
- {
- cout << "Gratulacje dobra odpowiedz!" << endl;
- }
- else
- {
- cout << "Niestety zla odpowiedz" << endl;
- }
- cout << "Kolejne pytanie" << endl;
- cout << "Pseldonim artystyczny JPII to:" << endl;
- cout << "Odpowiedz 1: lolek" << endl;
- cout << "Odpowiedz 2: Bestia z Wadowic" << endl;
- cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
- cin >> ODP2;
- if (ODP2==2)
- {
- cout << "Gratulacje dobra odpowiedz!" << endl;
- cout << "Dobrze ci idzie" << endl;
- cout << IMIE << endl;
- }
- else
- {
- cout << "Niestety to zla odpowiedz" << endl;
- }
- cout << "Oto trzecie pytanie w quizie o JPII" << endl;
- cout << "Co uwielbial jan pawel?" << endl;
- cout << "Odpowiedz 1: male dzieci" << endl;
- cout << "Odpowiedz 2: kremowki" << endl;
- cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
- cin >> ODP3;
- if (ODP3=1)
- {
- cout << "Gratulacje dobra odpowiedz!" << endl;
- cout << "Dobrze ci idzie" << endl;
- cout << IMIE << endl;
- }
- else
- {
- cout << "Niestety to zla odpowiedz" << endl;
- }
- cout << "Dziekujemy za udzial w quizie" << endl;
- cout << IMIE;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement