+ 1
Can some one help me with this one
4 Respostas
+ 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
+ 1
HNNX 🐿 that last line is not required I guess. Kindly see to it.
0
fixed
class Program {
public static void main (String[] args) {
int i;
for(i = 1; i < 10; i++) {
System.out.println(i);
}
}
}