Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main(){
- char znak;
- int t=0,a=0,o=0;
- int tato=0;
- do {
- cin>>znak;
- if (znak=='t')
- t++;
- else if(znak=='a')
- a++;
- else if(znak=='o')
- o++;
- if(t>=2 && a>=1 && o>=1 )
- tato=t+a+o;
- }while(tato<4);
- cout<<"ze slow mozna ulozyc slowo" ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement