delorie.com/archives/browse.cgi | search |
Message-Id: | <3.0.5.32.19980303222653.007af750@pop.iquest.net> |
Date: | Tue, 03 Mar 1998 22:26:53 -0500 |
To: | djgpp AT delorie DOT com |
From: | Ricki Lee King <rlking AT iquest DOT net> |
Subject: | compile error |
Mime-Version: | 1.0 |
here is my program that won't compile. #include <math.h> #include <iostream.h> #include <stdio.h> main() {unsigned long n; cout << "enter an integer\n"; cin >> n; cout << endl; for (int cc = 1; cc < sqrt ( n ); cc++ ) if (cc % n) cout << "not a prime!\n"; else cout << "it is a prime!\n";}
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |