#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}
Answer Posted / ajay
error loop is incomplete
Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
How can I manipulate strings of multibyte characters?
What is variable initialization and why is it important?
Can you please explain the difference between syntax vs logical error?
Can you tell me how to check whether a linked list is circular?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Can a program have two main functions?
Write a progarm to find the length of string using switch case?
What is actual argument?
What is the Purpose of 'extern' keyword in a function declaration?
What are linker error?
What are the different types of control structures?
What are Macros? What are its advantages and disadvantages?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
Where are the auto variables stored?
Is javascript based on c?