program using UDF numbers of alphabets in a string | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
- 1

program using UDF numbers of alphabets in a string

class 11 chapter functions

28th Nov 2016, 7:48 PM
burhanuddin
burhanuddin - avatar
1 Respuesta
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