0

i want code for the follwing series

1
1 2
1 2 3
1 2 3 4
1 2 3 4 ..................n

when we n as 2 it should display
1
1 2

when we gave n as 4 it should dispaly
1
1 2
1 2 3
1 2 3 4

6
Contributors
8
Replies
9
Views
8 Years
Discussion Span
Last Post by ramyasowbhagya
0

I really unware of the code
please help me out
i m beginer of "C",
if u provide me with cide,i can develop few of that sort
pleae help me

0

Thanks for the reply
i will be using the same
thanks a lot

His code isn't correct solution to your problem, but does give you a good start on it.

-1

#include<stdio.h>
main()
{
int i,j,n;
printf("Enter the value of n:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
printf("%d ",j);
printf("\n");
}
}

Votes + Comments
Giving a solution... AND with no code tags.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.