16th Mar 2021, 12:43 AM
Vikash Kumar Tiwari
Vikash Kumar Tiwari - avatar
4 odpowiedzi
+ 4
you doesn't make any effort to debug by yourself, nor you learn from recent advices... here are your last 24 hours posts: https://www.sololearn.com/Discuss/2726549/?ref=app https://www.sololearn.com/Discuss/2726482/?ref=app https://www.sololearn.com/Discuss/2726235/?ref=app
16th Mar 2021, 12:52 AM
visph
visph - avatar
+ 2
Vikash Kumar Tiwari Does not matter who is he. You have to show your efforts before asking for solution.
16th Mar 2021, 4:23 AM
A͢J
A͢J - avatar
+ 2
Vikash Kumar Tiwari 1 - you didn't declare time variable 2 - you declared n but not storing input value in n but you have checked if (n < 1) 3 - For multi line statement there should be curly braces so in every if else condition there should be curly braces before and after the statement. 4 - single equal use for assignment not for comparison so here if (n = 1) is wrong. There should be if (n == 1) https://code.sololearn.com/cZGPu85WvScJ/?ref=app These are basic things. First you need to clear it then try to write long code. Suggestion :- Your basic is not clear first clear it.
16th Mar 2021, 4:54 AM
A͢J
A͢J - avatar
0
Who r u
16th Mar 2021, 12:54 AM
Vikash Kumar Tiwari
Vikash Kumar Tiwari - avatar