write a program whose output will be-
1
12
123
1234
Answer Posted / devi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 51 Yes | 15 No |
Post New Answer View All Answers
How can I send mail from within a c program?
Explain high-order bytes.
What will the preprocessor do for a program?
why return type of main is not necessary in linux
Why header files are used?
How many types of operator or there in c?
Explain the use of fflush() function?
How are strings stored in c?
Explain what’s a signal? Explain what do I use signals for?
What do you mean by scope of a variable in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Is r written in c?
What is the best way to comment out a section of code that contains comments?
What is || operator and how does it function in a program?
What is a good data structure to use for storing lines of text?