Forum: C++ Jul 7th, 2007 |
| Replies: 6 Views: 5,747 Here's what I've come up with so far:
#include <iostream>
bool IsPrime(int num)
{
if(num == 0)
return true;
num = abs(num); |
Forum: C++ Jul 6th, 2007 |
| Replies: 6 Views: 5,747 I need to write a main() function, that loops over a bunch of
numbers from 0 to 100, calls another function called isPrime() for each of them, and print out the numbers that are prime.
I'm new to... |