Search Results

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: forumposters ; Forum: C++ and child forums
Forum: C++ Jul 7th, 2007
Replies: 6
Views: 5,747
Posted By forumposters
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
Posted By forumposters
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...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC