Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;
Answer Posted / harpreet kaur
we can create our own header file having a function to
print nos with loop and then use that header file in new
prog with the functoin defined in it.
| Is This Answer Correct ? | 30 Yes | 37 No |
Post New Answer View All Answers
Explain how can I prevent another program from modifying part of a file that I am modifying?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
What are volatile variables in c?
What is data types?
What are pragmas and what are they good for?
Why is c called c not d or e?
How does selection sort work in c?
What is difference between %d and %i in c?
Is register a keyword in c?
How many keywords are there in c?
what is stack , heap ,code segment,and data segment
How can I handle floating-point exceptions gracefully?
What is NULL pointer?
How important is structure in life?
Write a program to reverse a linked list in c.