write a program whose output will be-
1
12
123
1234
Answer Posted / chaitanya
#include<stdio.h>
void main()
{
int s,i,j,n=1;
printf("enter the length of the sequence
");
scanf("%d",&s);
for(i=1;i<=s;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf(" ");
}
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Write a program to implement queue.
Explain how do you sort filenames in a directory?
What is #define size in c?
What are the difference between a free-standing and a hosted environment?
State the difference between realloc and free.
What is the size of array float a(10)?
Was 2000 a leap year?
Difference between pass by reference and pass by value?
Where are c variables stored in memory?
What is c language & why it is used?
What are directives in c?
What are the application of c?
What should malloc(0) do?
What is pointer to pointer in c language?
Can a pointer be static?