Below is the code written in java
for (int a = 1,int b = 4; a < b; a++, b--)
System.out.println("a = " + a + " b=" + b);
It shows syntax error in int . Please tell me the reason for syntax inside for loop. when we declare int a,b , it does not show error.
intbeforeb