program using UDF numbers of alphabets in a string | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 1

program using UDF numbers of alphabets in a string

class 11 chapter functions

28th Nov 2016, 7:48 PM
burhanuddin
burhanuddin - avatar
1 Resposta
0
int nos_of_alpha(string str) { int count = 0; for(int i=0;i<str.length();i++) { if(str[i] != ' ') count++; } return count; }
29th Nov 2016, 6:52 AM
Abhishek Kumar
Abhishek Kumar - avatar