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
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is the 'named constructor idiom'?
What is memory leak in c?
a program that can input number of records and can view it again the record
Why array is used in c?
What is preprocessor with example?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is use of pointer?
Can you please explain the difference between exit() and _exit() function?
what is ur strangth & weekness
What is the difference between single charater constant and string constant?
How to declare pointer variables?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What is string function c?