/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package BASICJAVA;
import java.util.Scanner;
/**
*
* @author ABIR
*/
public class Hollow_Triangle_Number {
public static void main(String[]Args){
Scanner abir=new Scanner(System.in);
System.out.println("entar anum");
int x=abir.nextInt();
System.out.println("Sample output");
int c=1;
while(c<x){
System.out.println();
int d=1;
while(d<=(x-c)){
System.out.print(" ");
d++;
}
int e = 1;
while (e<=(2*(c)-1)){
if(e==1)
{
System.out.print (e);
}
else
{
if (e==2*(c)-1)
{
System.out.print (e);
}
else
{
System.out.print (" ");
}
}
e++;
}
c++;
}
System.out.println();
int f = 1;
while (f<=(2*x-1))
{
System.out.print(f);
f++;
}
System.out.println();
System.out.println("=======================================================");
}
}