Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how i m write c program 1.check prime number 2.prime number
series



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

Post New Answer

More C Interview Questions

The __________ attribute is used to announce variables based on definitions of columns in a table?

0 Answers  


What is a struct c#?

0 Answers  


What is the difference between single charater constant and string constant?

0 Answers  


Do you know what is a programing language ?

0 Answers  


Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


How do you do dynamic memory allocation in C applications?

0 Answers  


Why is sizeof () an operator and not a function?

0 Answers  


Is it possible to execute code even after the program exits the main() function?

0 Answers  


inline function is there in c language?

4 Answers  


Write any data structure program (stack implementation)

1 Answers   HTC,


12344321 123 321 12 21 1 1 how i print this program??

5 Answers   DSR Management, Winit,


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


Categories