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...

write the program for prime numbers?

Answer Posted / santhoshi

main()
{
for(int i=1;i<100;i++)
{
count=0;
for(j=1;j<=100;j++)
{
if(i%j==0)
{
count++;
}
}
if(count==2)
{
printf(i);
}
}
getch();
}

Is This Answer Correct ?    12 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1207


What is a structure member in c?

1007


Explain high-order bytes.

1121


How can I do serial ("comm") port I/O?

1184


What is #line?

1059


What is string function in c?

990


Are comments included during the compilation stage and placed in the EXE file as well?

1086


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1133


What is the difference between new and malloc functions?

1131


List some of the dynamic data structures in C?

1249


Write a Program to find whether the given number or string is palindrome.

1280


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1727


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2449


using for loop sum 2 number of any 4 digit number in c language

2351


What is meant by errors and debugging?

1111