Hi, welcome to my website Programming.OM. My name is Om prakash kartik. This blog helps you to learn programming languages concepts and technique.
#include<stdio.h> #include<conio.h> int main() { int i,j; for(i=0;i<=5;i++) { for(j=0;j<=5-i;j++) printf(" "); for(j=i;j>=0;j--) printf("%2d",j); for(j=1;j<=i;j++) printf("%2d",j); printf("\n"); } getch(); }
Output:
0 Comments