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


Please Help Members By Posting Answers For Below Questions

What is register variable in c language?

604


Do you know the difference between exit() and _exit() function in c?

609


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1892


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1138


What does dm mean sexually?

814






What is scanf () in c?

662


Write a program to check whether a number is prime or not using c?

576


What is the use of #include in c?

576


What is the best way to comment out a section of code that contains comments?

784


How do we make a global variable accessible across files? Explain the extern keyword?

1422


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15048


Who developed c language?

642


What is const and volatile in c?

566


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

665


What does volatile do?

567