Search This Blog

Wednesday, 12 March 2014

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:





No comments:

Post a comment