CheeseMan42 Posted February 27, 2010 Posted February 27, 2010 yea that's what mod is, its the remainder. "mod(x) number" is more of ther math way to write it out. I know that. I was correcting you because you wrote it wrong. Share this post Link to post Share on other sites More sharing options...
RimX Posted February 28, 2010 Posted February 28, 2010 I know that. I was correcting you because you wrote it wrong. oh...yea, just looked at the code again, sorry, you're right...I guess I was still thinking in terms of a for loop. Share this post Link to post Share on other sites More sharing options...
pulinpathneja Posted January 7, 2011 Posted January 7, 2011 This program won't run for the number which are in power of prime numbers like 4,8,16,32, 9,27,81 and will always return answer as 1 Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now