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
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Is linux written in c?
How do you define a string?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is volatile variable in c with example?
Explain the use of keyword 'register' with respect to variables.
When is a “switch” statement preferable over an “if” statement?
What are the differences between Structures and Arrays?
Why we use int main and void main?
How can I get random integers in a certain range?
Which is better malloc or calloc?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Is multithreading possible in c?
What is use of #include in c?
Explain what are multibyte characters?