+ 1
13th Jan 2020, 3:18 PM
Haris J
Haris J - avatar
4 Answers
+ 1
import java.util.*; // unnecessary import class Program{ public static void main (String[] args); // main function is inside curly brackets, you used ; instead of { int i; { // no braces needed when outside of the for loop for (i=1;i<10;i++) { System.out.println(i); } } } }// missing last brace
13th Jan 2020, 4:41 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 1
HNNX 🐿 that last line is not required I guess. Kindly see to it.
13th Jan 2020, 4:59 PM
Avinesh
Avinesh - avatar
0
fixed class Program { public static void main (String[] args) { int i; for(i = 1; i < 10; i++) { System.out.println(i); } } }
13th Jan 2020, 9:42 PM
aleksandar tadic
aleksandar tadic - avatar