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 ODP4;
- int PTK=0;
- int WIEK;
- int main()
- {
- cout << "=======================================" << endl;
- cout << "Witaj w wielkim quizie o JPII" << endl;
- cout << "Podaj swoje imie:";
- cin >> IMIE;
- cout << IMIE << " " << "Podaj swoj wiek:";
- cin >> WIEK;
- if(WIEK>=16)
- {
- cout << "Milej zabawy" << " " << IMIE << endl;
- }
- else
- {
- cout << "jestes za mlody wroc za kilka lat"<< " " << IMIE << endl;
- return 0;
- }
- //1 pytanie
- {
- cout << "=======================================" << endl;
- cout << "Oto pierwsze pytanie!" << endl;
- cout << "Czy JPII gwalcil male dzieci?" << endl;
- cout << "Odpowiedz 1: TAK" << endl;
- cout << "Odpowiedz 2: NIE" << endl;
- cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
- cin >> ODP;
- if (ODP==1)
- {
- (PTK=PTK+1);
- cout << "Gratulacje dobra odpowiedz!" << endl;
- }
- else
- {
- cout << "Niestety zla odpowiedz" << endl;
- }
- }
- // 2 pytanie
- {
- cout << "=======================================" << 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)
- {
- (PTK=PTK+1);
- cout << "Gratulacje dobra odpowiedz!" << endl;
- cout << "Dobrze ci idzie" << " " << IMIE << endl;
- }
- else
- {
- cout << "Niestety to zla odpowiedz" << endl;
- }
- }
- // 3 pytanie
- {
- cout << "=======================================" << 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==2)
- {
- cout << "Niestety to zla odpowiedz" << endl;
- }
- else
- {
- (PTK=PTK+1);
- cout << "Gratulacje dobra odpowiedz!" << endl;
- cout << "Dobrze ci idzie" << " " << IMIE << endl;
- }
- }
- // 4 pytanie
- {
- cout << "=======================================" << endl;
- cout << "Oto czwarte pytanie w quizie o JPII!" << endl;
- cout << "Ktora godzina kojazy ci siê z z JPII?" << endl;
- cout << "Odpowiedz 1: 13:37" << endl;
- cout << "Odpowiedz 2: 21:37" << endl;
- cout << "Twoja odpowiedz to? wpisz 1 lub 2" << endl;
- cin >> ODP4;
- if (ODP4==2)
- {
- (PTK=PTK+1);
- cout << "Gratulacje dobra odpowiedz!" << endl;
- cout << "Swietnie ci idzie!" << " " <<IMIE << endl;
- }
- else
- {
- cout << "Niestety to zla odpowiedz" << endl;
- }
- }
- cout << "=======================================" << endl;
- cout << "Twoj wynik to:" << PTK << "punkty" << endl;
- cout << "=============================" << endl;
- cout << "Dziekujemy za udzial w quizie" << " " << IMIE << endl;
- cout << "=======================================" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement