code snippet for creating a pyramids triangle
ex
1
2 2
3 3 3
Answer Posted / manvi
main()
{
int i,j,n;
printf("enter the limit");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=0;j<i;j++)
{
printf("%d",i);
}
printf("\n");
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between int main and void main in c?
how do you execute a c program in unix.
What does printf does?
What is assert and when would I use it?
i got 75% in all semester am i eligible for your company
What is the difference between arrays and pointers?
What is c system32 taskhostw exe?
What is 2 d array in c?
What is time null in c?
Why is struct padding needed?
Is that possible to add pointers to each other?
Why should I use standard library functions instead of writing my own?
How are portions of a program disabled in demo versions?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
Why can’t constant values be used to define an array’s initial size?