example of a for loop

Solutions on MaxInterview for example of a for loop by the best coders in the world

showing results for - "example of a for loop"
Nessa
03 Apr 2017
1public class Test {
2
3   public static void main(String args[]) {
4
5      for(int x = 10; x < 20; x = x + 1) {
6         System.out.print("value of x : " + x );
7         System.out.print("\n");
8      }
9   }
10}