For Loop Example in Java

                          For Loop Example in Java




/*
         This is a Simple Program Showing Use of for loop.
          Program developed by #Asad Hussain
         This file name is "forexp.java".
*/
import java.util.*;

public class forexp {
public static void main(String args[]){

        for (int x = 0; x < 10; x++)
            System.out.println("Number " + x);
   

}
}

Output of the Given Program:
Java Program showing use of for loop Asad Hussain

Written By: Asad Hussain

Post a Comment

Previous Post Next Post