0

For loop in java not working

A basic program in java using for loop not working https://code.sololearn.com/cyhji4Tu1joS/?ref=app

2nd Jun 2019, 3:09 PM
SRIKANTH N
SRIKANTH N - avatar
2 Answers
+ 7
SRIKANTH N remove ";" after the condition of for loop. public class Program { public static void main(String[] args) { for(int j=1;j<=10;j++) { System .out.println (j); } } }
2nd Jun 2019, 3:15 PM
Asmit joy
Asmit joy - avatar
0
Tq guys i got it now Tq all
2nd Jun 2019, 3:16 PM
SRIKANTH N
SRIKANTH N - avatar