I need my program to print this out:
*****
****
***
**
*
Thing is is that it only prints out this and nothing else:
*****
Here's my code:
Any help is greatly appreciated.Code:#include <stdio.h> main(){ int i, j; i=1; j=5; while(i<=5){ while(j>=i){ printf("*"); i++; } printf("\n"); j--; } return 0; }