Advertisement
edutedu

vr 42

Apr 14th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char a[100];
  8. int i, n, j=0;
  9. cin.get(a, 100);
  10. n=strlen(a);
  11. for(i=0; i<n; i++)
  12. {
  13. if(strchr("aeiou",a[i]))
  14. {
  15. cout<<a[i]<<" ";
  16. j++;
  17. }
  18. }
  19. if(j==0)
  20. {
  21. cout<<"Sirul nu are vocale";
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement