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
Difference between exit() and _exit() function?
How can a process change an environment variable in its caller?
What are external variables in c?
When is a “switch” statement preferable over an “if” statement?
What is the difference between text and binary modes?
Explain what happens if you free a pointer twice?
What is a macro in c preprocessor?
Explain how can I pad a string to a known length?
Why is c platform dependent?
Which is better pointer or array?
What are the advantages of using Unions?
What is the difference between class and object in c?
What are the different file extensions involved when programming in C?
what is the difference between 123 and 0123 in c?
What's the right way to use errno?