0
What is the error can anybody help
public class Program { public static void main(String[] args) { for(i = 2;i < 10; i = i * i;) { System.out.println(i); } } }
5 Respostas
+ 2
but you gave semicolon after i=i*i which should not be there
+ 1
2
4
+ 1
I try without ; but it still shows 1 error
+ 1
and thanks
+ 1
its giving
2
4
only!!!