English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write a C/C++ program which consists of a user-define function Prime. This function will take a number and check that the number is prime or not if the number is prime Display The number is Prime other wise display The number is not Prime. Call this function in main program.

2007-04-12 04:14:09 · 2 answers · asked by Muhammad A 1 in Computers & Internet Programming & Design

2 answers

I'm guessing that this is your homework for your computer class.

Read the text book, and ask the instructor if you don't understand the materials.

If you have us do your work for you, you'll be lost once you're in the workplace, and will end up getting fired for incompetence.

(By the way, a C or C++ routine that determines prime numbers is pretty simple. Just re-read the chapter on subroutines.)

2007-04-12 04:18:59 · answer #1 · answered by Stuart 7 · 1 0

I hope this link answers your question
http://www.anyexample.com/programming/cplusplus/cplusplus_function_for_prime_number_check_(primality_test).xml

2007-04-12 04:19:02 · answer #2 · answered by solver 1 · 0 0

fedest.com, questions and answers