Computer Science Canada two simple questions |
Author: | empror9 [ Sun Jul 04, 2010 11:32 pm ] | ||||
Post subject: | two simple questions | ||||
hello everyone Q1-see this equation is this the correct code for this Q1?
**** Q2- i want to edit this code to accept one number and then show the numbaer whether is a prime or not this is the code and i try to edit but i couldn't this is the code
waiting for you ![]() |
Author: | rdrake [ Sun Jul 04, 2010 11:56 pm ] |
Post subject: | Re: two simple questions |
Welcome to the forums. There are a few things you need to know first.
Doing the above things will help encourage other users to provide you with assistance. |
Author: | empror9 [ Mon Jul 05, 2010 12:14 am ] |
Post subject: | Re: two simple questions |
ok thanks ![]() but i'm still waiting for a help |
Author: | Insectoid [ Mon Jul 05, 2010 8:29 am ] | ||
Post subject: | RE:two simple questions | ||
As for question 1- Does it work? Then it's one of the many, many 'correct' solutions. No? Then it's wrong. As for question 2, you seem to be trying to find every prime up to 'num', while in your question you're saying you only want to know if 'num' is prime. This line:
|