Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

Answer Posted / sweetsmiracle17

plz provide answer

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I prevent another program from modifying part of a file that I am modifying?

641


What is scanf () in c?

662


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

656


How can I sort more data than will fit in memory?

630


What are directives in c?

548






How are portions of a program disabled in demo versions?

751


Where can I get an ansi-compatible lint?

642


What is string function in c?

540


Explain the use of fflush() function?

627


What is the right way to use errno?

621


What are called c variables?

574


Differentiate between functions getch() and getche().

624


What is data structure in c language?

606


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1848


What’s the special use of UNIONS?

659