Sponsors

Just made some little changes in the first code. It was easy. If you have complete idea of for loop then you can do it yourself. Feel free to share your code.

Here is the Code :

  int x,y;
for (x = 1; x <= 5; x++)
{
for (y = 5; y >= x; y–)
{
printf(“*”);
}
printf(“\n”);
}

Sponsors

LEAVE A REPLY

Please enter your comment!
Please enter your name here