0

I'm confused, can you explain this on why its not printing?

I tried something similar to the actual quiz problem, but the answer is "5". SoloLearn Quiz: int x = 0; int y = 5; while(x<y){ System.out.println("HelloWorld") x++; } Answer is 5 MY EXAMPLE; package sample; public class WhileLoops { public static void main(String args[]){ int v = 100; int b = 20; while(v < b){ System.out.println("Damn sons"); v++; } } } OUTPUT; *blank* I don't understand how they got 5. When mines didn't give me a output. Can you help me understand what happened here?

11th Jul 2018, 11:31 PM
Vell Jackson
Vell Jackson - avatar
0 Resposta