/* This is a simple java program */ class Example { // the entry point public static void main(String args[]) { int n = 5; int i; for(i = 0; i < n; i++) { System.out.println("The value of i is: " + i); } } }