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 is Iteration Hierarchy? What is what is Object behavioral concept?

1 Answers  


What is new keyword in oops?

0 Answers  


Can enum be null?

0 Answers  


What is encapsulation in simple terms?

0 Answers  


What is multiple inheritance?

9 Answers   TCS,


Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.

1 Answers   Global Academy, Infotech,


in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C

1 Answers   IonIdea,


difine hierarchical inheritance.

9 Answers   ASD Lab, TCS,


When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


officer say me - i am offered to a smoking , then what can you say

0 Answers  


What is Virtual Keyword?

9 Answers   IBM, NA,


write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

1 Answers   College School Exams Tests, HCL, IBM, TCS,


Categories