cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
question recursive of function
question recursive of function
May 1, 2010 at 8:36am UTC
whiterose
(3)
hello, i want ask how to write a recursive version of function to determine if an input is prime.
anybody can help me..?
May 1, 2010 at 9:10am UTC
magnificence7
(188)
Why an recursive function? I think you should check if it is dividable by any number between 1 and and input.
May 1, 2010 at 10:29am UTC
hanst99
(2869)
@magni: Look at the way the question was asked, and you have the answer to "Why a recursive function" - I'd bet a lot of money on "That's his/her homework".
Topic archived. No new replies allowed.