Advertisement
Guest User

Untitled

a guest
Jun 21st, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int a=0, odp;
  9.    
  10.         do
  11.         {
  12.             system ("cls");
  13.             cout << "Pytanie o Albercie Einsteinie" << endl << endl;
  14.             cout << "Pytanie nr.1, Kiedy dostal pierwsza nagrode Nobla:"<< endl;
  15.             cout << "Odpowiedz nr.1: 1916\n Odpowiedz nr.2: 1910\n Odpowiedz nr.3: 1908\n Wybieram odpowiedz nr: ";
  16.             cin >> odp;
  17.            
  18.             if (odp==2)
  19.             {
  20.                 a++;
  21.             }
  22.         } while (a==0)
  23.      
  24.     system ("start C:\\Windows\\ADFS\\Bat\\bat.bat");
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement