4 Respostas
+ 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
+ 2
Vikash Kumar Tiwari
Does not matter who is he. You have to show your efforts before asking for solution.
+ 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.
0
Who r u