class Numbers
{
public static void main(String[] args)
{
int nums2,nums,num=Integer.parseInt(args[0]);
System.out.println("Please enter number of star(1-9) : "+num);
for(nums=1;nums<=num;nums++){
System.out.println(nums);
}
}
}
import java.util.Scanner;
public class Ans {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print("Please enter number of star(1-9) : ");
Scanner keyboard = new Scanner(System.in);
int num = keyboard.nextInt();
for(int i = 1; i <= num; i++) {
for(int j = 1; j <= i; j++ ) {
System.out.print(i);
}
System.out.println();
}
}
}