#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 / vedansh
2
3
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Why do we use header files in c?
When should a far pointer be used?
What does malloc () calloc () realloc () free () do?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is scope of variable in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the difference between struct and typedef struct in c?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Difference between malloc() and calloc() function?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Write a Program to accept different goods with the number, price and date of purchase and display them
What is storage class?