BlueJ Programs

Program To Print First 10 Natural Numbers

This Program prints first 10 natural numbers.



class Print // By Steve
{
public static void main()
{
for (int i=1;i<=10;i++)
System.out.println(i);
}
}



No comments:

Post a Comment