0

What is the output?????

public class Program { public static void main(String[] args) { for(int x=0; x<=10; x=x+2) { System.out.println(x); } int i=10; while(i>0) { i-=2; System.out.println(i); } } }

25th Oct 2017, 10:26 PM
Bashdar Abdalrahman MOHAMMED
Bashdar Abdalrahman MOHAMMED - avatar
5 odpowiedzi
+ 5
Go to Code Playground, create new Java code, paste and Run, it's easy.
25th Oct 2017, 11:10 PM
Ipang
+ 2
@Bashdar okay, so anyway, a friend here needs help, maybe you can look at the thread and give an idea for solution, and help that friend? will appreciate your help... https://www.sololearn.com/Discuss/812514/?ref=app
27th Oct 2017, 8:39 AM
Ipang
+ 1
Well, if you want to make it a challenge you can clearly explained it in the question title and tags, at least use "[Challenge]" prefix for the title and "challenges" in the tag. What do you mean by training? you give free training for others? if you already know the answer then why you ask again? you want to test others? ask something you really need to know, or answer others question to share what you already know :)
27th Oct 2017, 7:31 AM
Ipang
+ 1
just for test others?? i know easy code and you are true... i know this department Q&A Discussion , but i like test others..
27th Oct 2017, 8:31 AM
Bashdar Abdalrahman MOHAMMED
Bashdar Abdalrahman MOHAMMED - avatar
0
i know answer , but just for training......
26th Oct 2017, 6:21 PM
Bashdar Abdalrahman MOHAMMED
Bashdar Abdalrahman MOHAMMED - avatar