2021-06-27

I got the Expected output , but I dont know how it works can anyone please explain it [closed]

#include<stdio.h>

int main()
{
int i,j,n;
printf("Enter rows : ");
scanf("%d",&n);
for(i=1;i<=n;i++)//outer loop
{
for(j=n;j>=i;j--)//inner loop
{
printf("* ");
}
printf("\n");
}
return 0;
}

here I got the expected output but dont know how it works can anyone please explain



from Recent Questions - Stack Overflow https://ift.tt/3xSTkrV
https://ift.tt/eA8V8J

No comments:

Post a Comment