Strings Challenge - Can You Read This

I guess my approach is right but the output coming is in incorrect form. I can’t figure out what to do now??
Plzz help.
https://ide.codingblocks.com/s/142756

You are not using correct approach in your code, plz use these conditions in your code as well, in for loop as :

if(i==0 && S[i]>=‘A’ && S[i]<=‘Z’)
{
cout<<S[i];
}
else if(S[i]>=‘a’&& S[i]<=‘z’)
{
cout<<S[i];
}
else if(S[i]>=‘A’ && S[i]<=‘Z’)
{
cout<<endl;
cout<<S[i];
}

1 Like

I got it…thanxx help for the help