write the program for prime numbers?
Answer Posted / karthika
#include<stdio.h>
#include<conio.h>
void main()
{
int num,i=2;
clrscr();
printf("\n entert a number");
scanf("%d",&num);
while(c<=num-1)
{
if(num%i==0)
{
printf("given number is not a prime number\n");
break;
}
i++;
}
if(i==num);
printf(given number is a prime number\n");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
in linking some of os executables are linking name some of them
Why do we use c for the speed of light?
What is uint8 in c?
Write a program for Overriding.
What is the size of empty structure in c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What are the preprocessor categories?
What is difference between arrays and pointers?
How can I sort more data than will fit in memory?
What is declaration and definition in c?
what do you mean by inline function in C?
Explain what is the difference between far and near ?
What are data types in c language?
What is a lookup table in c?
What Is The Difference Between Null And Void Pointer?