TenHellos.java
public class TenHellos
{
public static void main(String[] args)
{
System.out.println("1st Hello");
System.out.println("2nd Hello");
System.out.println("3rd Hello");
int i = 4;
while (i <= 10)
{
System.out.println(i + "th Hello");
i = i + 1;
}
}
}
No comments:
Post a Comment