Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- int main()
- {
- int n, i, v=0, c=0;
- char t[n];
- do
- {std::cout<<"n=";std::cin>>n;}while(n>256);
- for(i=0;i<n;i++)
- std::cin>>t[i];
- for(i=0;i<n;i++)
- std::cout<<t[i];
- for(i=0;i<n;i++)
- if(t[i] == 'a' || t[i] == 'e' || t[i] == 'i' || t[i] == 'o' || t[i] == 'u')
- v++;
- else
- c++;
- std::cout<<"\n"<<"Vocale: "<<v<<"\n"<<"Consoane: "<<c;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement