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 |
Why is C called a middle-level language?
what is a function pointer and how all to declare ,define and implement it ???
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }
How can I increase the allowable number of simultaneously open files?
What is the total generic pointer type?
Explain how do you generate random numbers in c?
What is a pragma?
If the static variable is declared as global, will it be same as extern?
What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 Answers MindFire, TCS, Tech Mahindra,
how to build a exercise findig min number of e heap with list imlemented?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Explain what is the benefit of using an enum rather than a #define constant?