Back

in java according to syntax of the for loop it says that we can give semicolon in for loop but for the following code it doesn't applies why?

Created 1 year ago
61 Views
1 Comments
Prasanthq3yCeA
@Prasanthq3yCeA
Prasanthq3yCeA
@Prasanthq3yCeAProfile is locked. Login
public class Loop {
public static void main(String[] args) {
int a=012,b;
for(b=0;b <=a;b++);
System.out.print(b);
}
}
Comments
Please login to comment.