write a program whose output will be-
1
12
123
1234
Answer Posted / aditya nath
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 18 Yes | 12 No |
Post New Answer View All Answers
Which type of language is c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Explain how can you tell whether a program was compiled using c versus c++?
What is the scope of local variable in c?
Describe the order of precedence with regards to operators in C.
c language interview questions & answer
What is c language & why it is used?
Why does everyone say not to use scanf? What should I use instead?
What are the preprocessor categories?
What is pointers in c?
Tell me the use of bit field in c language?
int i=10; printf("%d %d %d", i, i=20, i);
What is volatile variable how do you declare it?
Is c pass by value or reference?
How do you initialize pointer variables?