Why can't I pre define symbols +, -, *, / as string and make use of them???? Can someone please help.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why can't I pre define symbols +, -, *, / as string and make use of them???? Can someone please help....

If I use alphabet in place of above symbol as a representative of any operator the code seems to work perfectly.. But that is not the case in directly using symbols as operator.. https://code.sololearn.com/c6yCy0mc41E0/?ref=app https://code.sololearn.com/c3w4kmYwxqps/?ref=app

7th Mar 2020, 1:16 PM
Addy
Addy - avatar
0 Answers