- 2
code
can anybody give me the answer of this question int d=3; int f=2; for(d=10; d>6; d--) { System.out.print(f); f++; }
2 Answers
+ 1
2345
+ 1
d=10 inside for change it value, then loop normal.
You can shorter your code System.out.print(f++) instead. (And remove the next line the f++).