0

process finished with exit code 0

/** * Created by Dell on 4/20/2017. */ package loop_example; import java.util.Scanner; public class loop_example { public static void main(String[] args) { System.out.println("enter the umber of times loop_example has to be run in "); Scanner n = new Scanner(System.in); int loopnumber = n.nextInt(); while(loopnumber > 0) { System.out.println(loopnumber); loopnumber--; } } }

20th Apr 2017, 11:29 AM
Hridyansh Thakur
Hridyansh Thakur - avatar
12 odpowiedzi
+ 3
Exit code 0 means Your program has been successfully executed without any errors, If u have any errors it shows any non zero exit code :)
20th Apr 2017, 6:12 PM
Manideep
Manideep - avatar
+ 3
Where did u run that... the code works fine in code playground??
20th Apr 2017, 6:23 PM
Manideep
Manideep - avatar
+ 2
do you mean 0 was printed@Thakur?
20th Apr 2017, 11:25 AM
Manideep
Manideep - avatar
+ 2
can't really help until I get the whole thing :( But the code is fine :/
20th Apr 2017, 6:26 PM
Manideep
Manideep - avatar
+ 2
Are other codes working fine?Can't help much coz no PC :0
20th Apr 2017, 6:30 PM
Manideep
Manideep - avatar
0
no , it was exact statement​ there shikamaru
20th Apr 2017, 11:56 AM
Hridyansh Thakur
Hridyansh Thakur - avatar
0
i am not getting desired output
20th Apr 2017, 6:21 PM
Hridyansh Thakur
Hridyansh Thakur - avatar
0
yes , it was printed on output console , i use intelli j
20th Apr 2017, 6:24 PM
Hridyansh Thakur
Hridyansh Thakur - avatar
0
should i Change Ide?
20th Apr 2017, 6:28 PM
Hridyansh Thakur
Hridyansh Thakur - avatar
0
m.me/hridyansh.bluedevil.8 please drop me a text on fb using this link so i can provide whole thing
20th Apr 2017, 6:30 PM
Hridyansh Thakur
Hridyansh Thakur - avatar
0
yes , only loops giving this problem , it started when i tried on loops
20th Apr 2017, 6:31 PM
Hridyansh Thakur
Hridyansh Thakur - avatar
0
But i don't get the desired output
8th May 2023, 5:56 PM
Taher Chabaane
Taher Chabaane - avatar