This is why you should separate I/O from your algorithms. If you had implemented the IsPrime function as
int GetNumberFromUser();
bool IsPrime(int n);
int main()
{
int n =...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: D_Drmmr Search: Search took 0.04 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |