Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vivek
#include<stdio>
void main()
{
int i=1;
if(i<=100)
printf("%d",i);
i++;
continue;
getch;
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
How can I use a preprocessorif expression to ?
How many header files are in c?
What is sizeof return in c?
difference between native and cross compilers
Why do we use namespace feature?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
How can you draw circles in C?
How does free() know explain how much memory to release?
Where local variables are stored in c?
What are the back slash character constants or escape sequence charactersavailable in c?
What is the use of function overloading in C?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
I need a sort of an approximate strcmp routine?
What is the difference between the expression “++a” and “a++”?