/*
HOW TO MAKE A HALF PYRAMID OF STARS LIKE THIS
*
**
***
****
*****
*/
#include<stdio.h>
int main()
{ int j=0;
for(int i=1;i<6;i++){
for(j=0;j<i;j++){
printf("*");
}
printf("\n");
}
return 0;
}
0 Comments