+ 1

Is there any alternate solution for this question i.e instead of writing all alphabet.

https://code.sololearn.com/c6CdVPm0LPZU/?ref=app

2nd Sep 2020, 1:01 PM
shanthi maheswari
shanthi maheswari - avatar
6 Antworten
+ 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
29th Nov 2020, 3:39 PM
BroFar
BroFar - avatar
0
But how can we divide a,e,i,,o,u And consonants to their corresponding ascii values
2nd Sep 2020, 1:11 PM
shanthi maheswari
shanthi maheswari - avatar
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
2nd Sep 2020, 1:17 PM
Nathan Sikati
Nathan Sikati - avatar
0
A to Z => 65 to 91
2nd Sep 2020, 1:18 PM
Nathan Sikati
Nathan Sikati - avatar
0
I am asking that instead of checking all consonants is there any solution
2nd Sep 2020, 1:19 PM
shanthi maheswari
shanthi maheswari - avatar
0
Yess ,thank you
3rd Sep 2020, 7:31 AM
shanthi maheswari
shanthi maheswari - avatar