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); } } }

1st Mar 2017, 7:00 PM
siddharth shekhawat
siddharth shekhawat - avatar
5 Respostas
+ 2
but you gave semicolon after i=i*i which should not be there
1st Mar 2017, 7:07 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
+ 1
2 4
1st Mar 2017, 7:06 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
+ 1
I try without ; but it still shows 1 error
1st Mar 2017, 7:09 PM
siddharth shekhawat
siddharth shekhawat - avatar
+ 1
and thanks
1st Mar 2017, 7:11 PM
siddharth shekhawat
siddharth shekhawat - avatar
+ 1
its giving 2 4 only!!!
1st Mar 2017, 7:12 PM
Vaibhav Tandon
Vaibhav Tandon - avatar