C Pyramid_1
Write a program to create the following Pyramid using C program?
123456
123456
123456
123456
123456
123456
****************************Program***********************************
123456
123456
123456
123456
123456
123456
****************************Program***********************************
#include<stdio.h> #include<conio.h> main() { int i,j,k; printf("Enter the number of row : "); scanf("%d",&k); for(i=1;i<=k;i++) { for(j=1;j<=k;j++) printf("%d",j); printf("\n"); } printf("\nPress any key to continue...."); getch(); }
********************Output*****************************
screen shot for above program |
No comments