So I need to make it start from 1 and go up by odds so like 1 3 5 7
and I need to make it stop before it reaches the integer value
cout << "Loop 3: ";
for(i=1; i>=integer; i+= 2)
{
cout << i << " ";
}
it works but doesnt stop
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 4 of 4
Thread: Code
|
![]() Click Here to Expand Forum to Full Width |