Programming Tutorials

Comment on Tutorial - for loop in java By Abinaya



Comment Added by : jatin kapoor

Comment Added at : 2011-01-22 03:43:10

Comment on Tutorial : for loop in java By Abinaya
// Using the comma.
class Comma {
public static void main(String args[]) {
int a, b;
for(a=1, b=4; a<b; a++, b—) {
System.out.println("a = " + a);
System.out.println("b = " + b);
}
}
}
its output is wrong
please check out


View Tutorial