Full width home advertisement

Post Page Advertisement [Top]

#include<conio.h>
#include<stdio.h>
int i,j,k,n,no,value=1;
int main()
{
clrscr();
scanf("%d",&no);
n=no;

for(i=1;i<no;i++)
{

for(j=1;j<=n;j++)
{
  printf(" ");
}
n--;
for(k=1;k<=i;k++)
{

  printf("%d ",k);
}
       printf("\n");

}

getch();
return 0;
}

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib