+ 2

What's wrong in my code?

It is displayed 53144 instead of 72900.why? https://code.sololearn.com/cbA4Jtjqxwj6/?ref=app

26th Jul 2022, 6:43 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
6 Antworten
+ 2
TheWh¡teCat 🇧🇬 , thank You very very much.Now the code works fine ,thanks to You!!!
26th Jul 2022, 8:42 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 1
Egor Tonchev(EGO) , first you need to calculate for 3 months, not 6 change the loop. Look at the corrected code. https://code.sololearn.com/c3FtgETe3M0z/?ref=app
26th Jul 2022, 7:55 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Egor Tonchev(EGO) You were calculating for 6 month but actually it is 3
26th Jul 2022, 9:00 AM
A͢J
A͢J - avatar
0
You should start by explaining how reproduce the error. We don't know what input you used.
26th Jul 2022, 7:20 AM
Mustafa A
Mustafa A - avatar
0
Is the sample input & output incorrect, or is the instructions incorrect? 6 months will get you the correct samples.
27th Jul 2022, 6:24 AM
Mr.ActionGal101
Mr.ActionGal101 - avatar
0
TheWh¡teCat 🇧🇬 can you explain to me how you did it
27th Jul 2022, 6:44 PM
Luis Emilio Lizardo
Luis Emilio Lizardo - avatar