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

why do some people write if(0 == x) instead of if(x == 0)?

648


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

635


What is boolean in c?

601


What is a class c rental property?

601


What is difference between structure and union in c programming?

565






Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

594


I need a sort of an approximate strcmp routine?

653


What are the two forms of #include directive?

636


Explain what is a pragma?

583


What is the difference between int main and void main in c?

589


Place the #include statement must be written in the program?

563


What are the scope of static variables?

596


Give basis knowledge of web designing ...

1567


What is the difference between arrays and pointers?

627


I need previous papers of CSC.......plz help out by posting them.......

1809