how i m write c program 1.check prime number 2.prime number
series
Answer / sulthan
#include<stdio.h>
void main()
{
int a,i,n=0;
printf("\nEnter the Number");
scanf("%d",&a);
for(i=1;i<=a;i++)
if(a%i==0)
n++;
if(n=2)
printf("Prime")
else
printf("NOT Prime");
}
| Is This Answer Correct ? | 5 Yes | 2 No |
write a program in C to swap two variables
What is an endless loop?
which types of data structure will i use to convert infix to post fix???
Explain b+ tree?
What is indirection? How many levels of pointers can you have?
What is I ++ in c programming?
what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }
write a program structure to find average of given number
What are the storage classes in C?
What is undefined behavior?
how to create duplicate link list using C???
What are void pointers in c?