
-----------------------------------
AsianSensation
Wed Sep 10, 2003 9:23 pm

Program keeps on crashing...
-----------------------------------
We were suppose to make a simple program that tells if a number is prime or not, but my program keeps on crashing, the windows xp error message keeps on popping up, and I don't know what's wrong, can someone help me? btw, I'm using Dev c++


#include 
#include 

int main ()
{
    int num;

    cout > num;
    
    for (int i = 0; i < sqrt (num); i++)
    {
        if (num % i == 0)
            {
                cout 