Advertisement
Anna3O0

Caractere Fisa 4

Nov 20th, 2020 (edited)
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int ok=0,i;
  9.     char s[40];
  10.     cin>>s;
  11.     for(i=0;i<strlen(s);i++)
  12.         if(strchr("aeiou",s[i]))
  13.         {
  14.             cout<<s[i]<<" ";
  15.             ok=1;
  16.         }
  17.     if(ok==0)
  18.         cout<<"FARA VOCALE";
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement