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!!!)


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

What type of loop is a for loop?

0 Answers  


What is class in oop with example?

0 Answers  


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


can we create and enter the data & hide files using programmes ?

2 Answers   Wipro,


how much classes are used in c++

5 Answers  






Describe these concepts: Polymorphism, Inheritance and Abstraction.

0 Answers   TCS,


program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number

1 Answers   Anna University,


Why we are use # in begning of programme of c++.

2 Answers   Syntel,


what is the use of classes in c++;

2 Answers   HCL,


Write a program to demonstrate the use of 'Composition' in C++

2 Answers  


What is the important feature of inheritance?

0 Answers   BPL,


what is polymorpsim? what are its types?

8 Answers  


Categories