What is the problem with this code??Not getting proper output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the problem with this code??Not getting proper output

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

2nd Apr 2020, 3:28 AM
Alen Antony
Alen Antony - avatar
2 Answers
+ 3
input() returns a string. convert it to integer (or float). x = float(input()) You'll need to do this conversation for other input in your code.
2nd Apr 2020, 3:39 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
Thanks
2nd Apr 2020, 3:50 AM
Alen Antony
Alen Antony - avatar