Simple Write a simple Java program that prints a staircase or a figure as show
for(int row = 0; row < noOfLines; row++) {
for(int col = 0; col < noOfLines; col++) {
if(col < noOfLines - row -1)
System.out.print(" ");
else
System.out.print("#");
}
System.out.println();
}