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

Answer Posted / musa

#include <stdio.h>
main(){
printf("2 5 7 11 13 17 19");
}

Is This Answer Correct ?    10 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a pointer point to null?

594


What is I ++ in c programming?

630


What does 3 mean in texting?

620


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

768


List the difference between a "copy constructor" and a "assignment operator"?

587






Why & is used in scanf in c?

629


What is the difference between malloc() and calloc()?

619


In c language can we compile a program without main() function?

584


What are different types of variables in c?

573


How can a string be converted to a number?

521


What does the file stdio.h contain?

608


Explain bit masking in c?

642


Explain the term printf() and scanf() used in c language?

600


What is logical error?

605


How do c compilers work?

613