You are on page 1of 1

import java.util.

*;
class Star
{
public static void main(String[]args)
{
Scanner sc=new Scanner(System.in);
int i,j,n;
System.out.println("enter the number");
n=sc.nextInt();
for(i=n;i>1;i--)
{
for(j=1;j<i;j++)
{
System.out.print("*");
}
System.out.println("");
}
}
}

You might also like