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 / avinash

#include<stdio.h>
main()
int 1
{
printf("enter a number");
scanf("%d",1)
}
printf("The number is a prime number");
else
printf("The number is not a prime number");
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does static variable mean in c?

1113


What are the various types of control structures in programming?

1062


What is pointer & why it is used?

1123


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2295


State the difference between x3 and x[3].

1112


What is void c?

1097


How can I handle floating-point exceptions gracefully?

1178


What does the characters “r” and “w” mean when writing programs that will make use of files?

1486


Explain how can I prevent another program from modifying part of a file that I am modifying?

1095


Are there namespaces in c?

1133


What are the advantages of union?

1071


How can you tell whether two strings are the same?

1258


What does void main () mean?

1244


Write a program to identify if a given binary tree is balanced or not.

1167


Who developed c language and when?

1071