package testin;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scr = new Scanner(System.in);
int sideSize;
System.out.print("Enter size of the equal " +
"sides in an triangle:");
sideSize = scr.nextInt();
System.out.println();
for (int row=0; row<sideSize; row++)
{
for (int col=1; col <=row; col++)
{
if ((col == 1) || (col == row))
{
System.out.print("*");
}
else
{
System.out.print(" ");
}
System.out.println();
}
for ( int col=1; col<sideSize; col++)
{
System.out.print("*");
}
System.out.print(" ");
}
}
}