Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include<iostream.h>
  2. int main()
  3. {
  4.     int i=0,br=0;
  5.     char A[51];
  6.     cout<<"Vuvedi niz: \n";
  7.     cin>>A;
  8.     while(A[i]!='\0')
  9.     {
  10.         if(A[i]=='A'||A[i]=='E'||A[i]=='I'||A[i]=='O'||A[i]=='U'||A[i]=='Y'||
  11.            A[i]=='a'||A[i]=='e'||A[i]=='i'||A[i]=='o'||A[i]=='u'||A[i]=='y') br++;
  12.         i++;
  13.     }
  14.     if(br!=0) cout<<"Broi glasni:"<<br<<endl;
  15.     else cout<<"Nizut ne sudurja glasni. \n";
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement