Wednesday, July 6, 2022
HomeUncategorizedPyramid Problem in c programming language:print Row or lines only

Pyramid Problem in c programming language:print Row or lines only

#include

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

PROGRAMME



OUTPUT:

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

CSAT FORMULA BOOK

Only IAS Current Affairs

What is a Polynomial?