#pattern programs in c
- In the below pattern columns are started from 1 to N, and the number of columns is equal to the number of rows. #include<stdio.h> int main() int n,i,j; printf("Enter the number of rows: "); scanf("%d",&n); for(i=1; i<=n; i++) for(j=1; j<=n; j++) printf... 1
- In the below pattern each column contains N number of stars where N is the number of rows. Code: #include<stdio.h> int main() int n,i,j; printf("Enter the number of rows: "); scanf("%d",&n); for(i=1; i<=n; i++) for(j=1; j<=n; j++)... 1