Write a program to print prime nums from 1-20 using c
programing?

Answer Posted / ricky dobriyal

sorry for above output mistake:

output :1 2 5 7 11 13 17 19

Is This Answer Correct ?    21 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any one tel me wt is the question pattern for NIC exam

1569


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2749


What is the difference between Printf(..) and sprint(...) ?

798


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

639


In C language, a variable name cannot contain?

757






Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1626


What is the difference between text and binary i/o?

602


What is malloc return c?

605


Is there any possibility to create customized header file with c programming language?

634


What are shell structures used for?

609


What is the explanation for prototype function in c?

579


Explain what does it mean when a pointer is used in an if statement?

625


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3512


What is huge pointer in c?

592


Explain the difference between #include "..." And #include <...> In c?

638