• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Can anybody tell me why i am getting 4 outputs,it should be 3 if i entered for 3 test case

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

c++
5th Feb 2020, 6:54 AM
vishal shivhare
2 Antworten
+ 3
hi, output for 3 2 1 0 for three outputs: while n >0 instead of n >=0
5th Feb 2020, 7:20 AM
Oma Falk
Oma Falk - avatar
+ 1
Thanks I got that
5th Feb 2020, 7:20 AM
vishal shivhare

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Hello World!
0 Votes
What is wrost mistake that mostly people made while learning coding?
0 Votes
I'm lost with JavaScript (document.getElementById(".") And clearly making mistakes, Can someone help, I thought I had it but no.
0 Votes
What’s the actual difference between MB and GB in real-world usage?
1 Votes
Script file names
0 Votes
How to put multiple inputs in python?
1 Votes
What can I do after learning python and how to create amazing codes. And how many times it would take to be a good programmer😅
0 Votes
Html learn
1 Votes
I wish Ruby back in the course list
1 Votes
What to learn🤔
0 Votes