#include<stdio.h>
int main()
{
int n,a=1;
printf("Enter the number of rows: ");
scanf("%d",&n);
for(int r=1; r<=n; r++)
for(int i=1; i<=n-r; i++) printf(" ");
for(int c=1; c<=r; c++) printf("*");
printf("\n");
}}
return 0;
}
PROGRAM LIST TO BECOME PRO IN C 😍😍😍 PRACTICE SETS UNIT -1 👇 IN...
No comments:
Post a Comment