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

Answer Posted / binati mishra

prime number 1 to 20:
1 2 3 5 7 11 13 17 19

Is This Answer Correct ?    31 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program of prime number using recursion.

613


What is the use of linkage in c language?

611


how to make a scientific calculater ?

1562


What is the heap in c?

637


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

586






What is #ifdef ? What is its application?

642


what is the format specifier for printing a pointer value?

609


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

683


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

764


Write a program to show the change in position of a cursor using c

575


What is an example of structure?

586


What is the difference between struct and union in C?

568


What are actual arguments?

641


Explain what is the difference between a string and an array?

629


When should the const modifier be used?

652