SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. bool vocala(char x)
  5. {
  6.     if(x=='a'|| x=='e' || x=='i' || x=='o' || x=='u')
  7.         return 1;
  8.     return 0;
  9. }
  10. int main()
  11. {
  12.     char s[256];
  13.     int i,n;
  14.     cin.getline(s,256);
  15.     n=strlen(s);
  16.     for(i=0; i<n;i++)
  17.         if(vocala(s[i]))
  18.     s[i]=toupper(s[i]);
  19.     cout<<s;
  20.     return 0;
  21.    
  22.         return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top