Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- srand(time(NULL));
- cout <<"1. feladat"<< endl;
- int a=rand()%2+1;
- if (a==1) cout<<"F"<<endl;
- else cout<<"I"<<endl;
- cout<<"2. Feladat"<<endl;
- char tipp;
- cout<<"Tippeljen !"<<endl;
- cin>>tipp;
- a=rand()%2+1;
- if (a==1 & tipp=='F') cout<<"Eltalalta"<<endl;
- else if (a==2 & tipp=='I') cout<<"Eltalalta"<<endl;
- else cout<<"Nem talalta el"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement