You are on page 1of 1

import java.util.

Scanner;
public class pattern3 {
public static void main(String[] args){
Scanner op = new Scanner(System.in);
int a = op.nextInt();
for(int i=1;i<=a;i++){
for(int j=a;j>=i;j--){
System.out.print("* ");
}
System.out.println();
}
}
}

// * * * * *
// * * * *
// * * *
// * *
// *

You might also like