+ 1
Is there any alternate solution for this question i.e instead of writing all alphabet.
6 ответов
+ 2
shanthi maheswari please use appropriate tags when tags are used to identify your threads.
Thanks and happy coding.
https://www.sololearn.com/discuss/1108024/?ref=app
https://www.sololearn.com/discuss/1316935/?ref=app
0
But how can we divide a,e,i,,o,u
And consonants to their corresponding ascii values
0
a to z is coresponding to 97 to 122
So you can use a for loop to generate them like this
a=0
for(i=97; i<=122; i++){
letter[a]=chr(i)
a++
}
And you do the same for uppercase
0
A to Z => 65 to 91
0
I am asking that instead of checking all consonants is there any solution
0
Yess ,thank you