write the program for prime numbers?

Answer Posted / avinash

#include<stdio.h>
main()
int 1
{
printf("enter a number");
scanf("%d",1)
}
printf("The number is a prime number");
else
printf("The number is not a prime number");
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the c value paradox and how is it explained?

573


Explain what are preprocessor directives?

627


Is multithreading possible in c?

566


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

758


How can I run c program?

682






Explain #pragma statements.

604


Is there any demerits of using pointer?

627


What is the explanation for prototype function in c?

568


How can I manipulate individual bits?

606


What are the uses of a pointer?

681


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

687


What is huge pointer in c?

581


Is null always equal to 0(zero)?

581


What is methods in c?

639


What are the functions to open and close file in c language?

726