#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
int n,t,i,j,m;
//clrscr();
printf("\n pick a number ");
scanf("%d",&n);
for(i=1-n;i<n;i++)
{
m=n-abs(i);
for(j=65,t=1;t<=m;t++,j++){
printf("%3c",j);
}
printf("\n");
}
//getch(); //use getch() in TurboC++ to hold the console
return 0;
}
No comments:
Post a Comment