New course! Every coder should learn Generative AI!
Try a free lesson+ 2
can we make a loop in java of repeating same question for 10 times with a line code ?
2 Answers
+ 12
for (int i=0; i<10; i++)
System.out.println("question?");
+ 4
yes, use for loop, it is also covered in sololearn Java tutorial.