What about
int i, n =-20;
?
Took about 5 minutes. I never would have thought of n+1. More than 3 solutions, I guess. : )
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 69
Thread: Fun C++ ProblemThreaded View
|
Click Here to Expand Forum to Full Width |