Hello guys i hope you are fine and well. Hey just i wanted to ask that what is the error in the program. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello guys i hope you are fine and well. Hey just i wanted to ask that what is the error in the program.

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

13th Jul 2021, 12:01 PM
Ayush Pandey
Ayush Pandey - avatar
2 Answers
+ 2
you simply put a semicolon in line 11, just between the if condition and open bracket also, your code warns you that you've used an int data-type when you're accepting decimal values. so change that to double, located at line 9, units variable
13th Jul 2021, 12:11 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
Thanks for helping
13th Jul 2021, 12:13 PM
Ayush Pandey
Ayush Pandey - avatar