Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main()
- {
- char a[100];
- int i, n, j=0;
- cin.get(a, 100);
- n=strlen(a);
- for(i=0; i<n; i++)
- {
- if(strchr("aeiou",a[i]))
- {
- cout<<a[i]<<" ";
- j++;
- }
- }
- if(j==0)
- {
- cout<<"Sirul nu are vocale";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement