How to create rectangle using integers in C
----------------------------------------------------Program-------------------------------------------------
----------------------------------------------------Output---------------------------------------------------
#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=k;j>0;j--) printf("%d",j); printf("\n"); } printf("\nPress any key to continue...."); getch(); }
----------------------------------------------------Output---------------------------------------------------
Screenshot for number map |
No comments