import java.util.Scanner;
public class IncreasingStarRev {
public static void main(String[] args)
{
// Rows
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int nsp = n-1;
int nst = 1;
// Work
for(int row = 1; row <=n; row++)
{
// Work for Spaces
for(int csp = nsp; csp>=1; csp--)
{
System.out.print(" ");
}
// Work for stars
for(int cst = 1; cst<=nst; cst++)
{
System.out.print("*");
}
}
System.out.println();
nsp = nsp-1;
nst = nst+1;
}
}
Not able to get solution through CRX-Pattern 4