Hey all, Im doing my SDD homework and im stuck with this C++ question:
Rewrite the following code segment without using break and continue.
for (int i=0; i < 30; i+=2)
{
if (i % 2)
continue;
if (i % 3)
cout << i << endl;
if (i % 7)
break;
}
The problem is I've tried so...