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

Can the “if” function be used in comparing strings?

578


What is 2 d array in c?

544


Write a program to identify if a given binary tree is balanced or not.

673


write a program to print largest number of each row of a 2D array

1861


How to write a multi-statement macro?

614






Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

800


What are the types of data structures in c?

594


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

770


What is 2c dna?

596


What is optimization in c?

560


What is the difference between the local variable and global variable in c?

523


What is a protocol in c?

552


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

620


What are the __date__ and __time__ preprocessor commands?

561


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

646