Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
These loops will be repeated 2 times. I hope that it helps. for(int i=1; i <= 2; i++) { //some code } i = 1; while(i <= 2) { //som code i++; } i = 1; do { //some code i++; }while(i <=2);
7th Feb 2017, 1:58 PM
Samuel Kurnas