- 1
program using UDF numbers of alphabets in a string
class 11 chapter functions
1 Antwort
0
int nos_of_alpha(string str)
{
int count = 0;
for(int i=0;i<str.length();i++)
{
if(str[i] != ' ')
count++;
}
return count;
}