I am confusing in looping method using for, while, else if method in Java... can anyone help me in this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am confusing in looping method using for, while, else if method in Java... can anyone help me in this

11th Oct 2020, 11:06 AM
RøhiT Singh
RøhiT Singh - avatar
2 Answers
+ 5
First try with one for loop and try to guess answer do dry run in copy figureout how its woRkiNg after that try for nesting or you can see on Youtube tutorials.
11th Oct 2020, 11:16 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Else and if describe like "if something happens or if not happened" While loop like "while I eat pizza wait" For loop like "for the car put fuel until it is full"
11th Oct 2020, 11:19 AM
Ananiya Jemberu
Ananiya Jemberu - avatar