Anna3O0

4.11.2020 Scoala Caractere Fisa 4

Nov 20th, 2020
350
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data