#include<stdio.h> int main() { int i,j,k,n; printf("enter the number of rows"); scanf("%d",&n); for(i=1;i<=n;i++) { for(j=i;j<n;j++) printf(" "); for(k=1;k<=i;k++) printf("%d",k); for(k=i-1;k>=1;k--) printf("%d",k); printf("\n"); } return 0;}
prajna s p (lvl 1)Active users
1
All-time users
1
Favorites
0
Last updated
1 year ago
Date created
Dec 22, 2023