hi,
i have this program which read 20 char and count the number of small vowel letters then change them to capital
so i start 2 arrays so i have this idea to solve it
it is right or wrong please help me to understand the wrong part of it
Code:int i,v=0;
char a[20]
char v[5]={'e','a','u','i','o'}
for(i=0;i<20;i++)
cin>>a[i];
for(i=o;i<20;i++)
if(a[i]==v[5])
{
v++;
a[i]=a[i]-'A'+'a';
}
for(i=0;i<20;i++)
cout<<a[i];
cout<<"number of small vowel is ="<<v;