Code: Select all
for (int i=0;i<mystr.length();i++){
if (mystr.at(i) <= 122 && mystr.at(i) >=97){
result++;
}
}
Code: Select all
for (int i=0;i<mystr.length();i++){
if (mystr.at(i) <= 122 && mystr.at(i) >=97){
result++;
}
}