write a program whose output will be-
1
12
123
1234

Answer Posted / chaitali shinde

mian()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("1");
1++;
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    8 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the deal on sprintf_s return value?

643


What is scope rule in c?

605


Why c is known as a mother language?

644


What is the use of structure padding in c?

563


What is enumerated data type in c?

627






Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1518


Write a program to check prime number in c programming?

596


How many types of errors are there in c language? Explain

573


Create a simple code fragment that will swap the values of two variables num1 and num2.

813


What is stack in c?

613


Is r written in c?

722


Which is an example of a structural homology?

785


What is the purpose of 'register' keyword?

691


Explain how can I manipulate strings of multibyte characters?

782


How to implement a packet in C

2395