SHARE
TWEET

Untitled

a guest Dec 8th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char s[256];
  9.     int nrcuv=1, v[100];
  10.     cin.get(s, 255);
  11.     for(int i=0; i<strlen(s); i++)
  12.         if(s[i]==' ')
  13.         nrcuv++;
  14.     for(int i=0; i<strlen(s); i++)
  15.         if(strchr("AEIOU",s[i])!=0)
  16.             v[s[i]]++;
  17.     cout<<nrcuv<<endl;
  18.      for(int i=0; i<=40; i++)
  19.         if(v[i]!=0)
  20.             cout<<v[i]<<" ";
  21.  
  22. }
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