Thursday, May 19, 2022
HomeUncategorizedPYRAMID PROBLEM IN C PROGRAMMING LANGUAGE WITH OUTPUT SCREEN SHOT

PYRAMID PROBLEM IN C PROGRAMMING LANGUAGE WITH OUTPUT SCREEN SHOT

#include

int main()
{
int i,j,n;
printf(“Enter lines : “);
scanf(“%d”,&n);
for(i=1; i<=n; i++) /*This used for printing row only*/
{
for(j=1; j<=i; j++)/*This used for printing ASTERISK IE.* only*/
{
printf(“* “);
}

printf(“n”);

}

return 0;

}

OUTPUT:


 

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular