15th Jan 2021, 5:16 AM
Aman Prasad
Aman Prasad - avatar
7 Respuestas
+ 5
Aman Prasad First write correct code. Semicolon break the statement so you should not use after if statement.
15th Jan 2021, 5:42 AM
A͢J
A͢J - avatar
+ 4
Aman Prasad Use curly brackets {} after if else condition if there is multiple statement inside that condition. Here is the right way to write code. 1 - first take input together 2 - do calculation together 3 - print all values together https://code.sololearn.com/cA8PnkTA53Em/?ref=app
15th Jan 2021, 5:49 AM
A͢J
A͢J - avatar
+ 2
Aman Prasad Not break use return with proper message.
15th Jan 2021, 5:54 AM
A͢J
A͢J - avatar
+ 1
ok got it thanks a lot
15th Jan 2021, 5:55 AM
Aman Prasad
Aman Prasad - avatar
+ 1
Aman Prasad Check code again. I have updated. Now you can understand very clear.
15th Jan 2021, 6:00 AM
A͢J
A͢J - avatar
0
please guide me how i can correct it
15th Jan 2021, 5:47 AM
Aman Prasad
Aman Prasad - avatar
0
thanks! here i want to use break when i get input greater than 150
15th Jan 2021, 5:53 AM
Aman Prasad
Aman Prasad - avatar