0

why we got 25 in this code

https://code.sololearn.com/crsSweFqhZr0 thanks

21st Aug 2018, 9:41 AM
wally22
4 Respostas
+ 8
Ascii value of 'Z' and 'A' are 90 and 65 respectively. 90-65 = 25
21st Aug 2018, 9:46 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 5
ASCII "Z" = 90 "A"=65 90-65=25//" Z"-"A"
21st Aug 2018, 10:00 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 2
When you use ' ' you are referring to a character, which uses the arithmetic operations on their ASCII values. Then, Shamina has explained the procedure itself.
21st Aug 2018, 9:49 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
thanks
21st Aug 2018, 10:00 AM
wally22