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
What is register variable in c language?
Do you know the difference between exit() and _exit() function in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What does dm mean sexually?
What is scanf () in c?
Write a program to check whether a number is prime or not using c?
What is the use of #include in c?
What is the best way to comment out a section of code that contains comments?
How do we make a global variable accessible across files? Explain the extern keyword?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Who developed c language?
What is const and volatile in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What does volatile do?