Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char s[ 256 ], k = 0;
  9. cin.get(s, 256);
  10. for(int i = 0; i < strlen(s); i++)
  11. if(strchr("aeiou", s[ i ]) == true){
  12. s[ i ] = s[ i ] - 32; k++; }
  13.  
  14. cout << s << endl << k << " vocale;";
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement