Advertisement

HOW TO MAKE A HALF PYRAMID OF STARS

 /* 


  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;
}



OUTPUT:
*
**
***
****
*****

Our youtube channel link :    https://www.youtube.com/channel/UCvEI4tHm59GRCIsoKq57DOA

Our facebook  page  link :  https://www.facebook.com/harryscode87

Our instagram page link : https://www.instagram.com/harrys_code/

Post a Comment

0 Comments