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
What is the difference between variable declaration and variable definition in c?
I need a sort of an approximate strcmp routine?
How can I write a function that takes a format string and a variable number of arguments?
What is pointer to pointer in c with example?
What math functions are available for integers? For floating point?
What is the acronym for ansi?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is d'n in c?
What is the importance of c in your views?
How does sizeof know array size?
What is #line?
What is the Purpose of 'extern' keyword in a function declaration?
What is the size of enum in bytes?
Tell me with an example the self-referential structure?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }