code
#include <iostream>
using namespace std;
int main()
{
int number = 7;
for (int i = 0; i < 10; i ++)
{
//continue를 만나면 continue아래 명령을 수행하지 않고 반복문을 한번 더 돕니다.
if (i % 3 == 0)
continue;
//break를 만나면 그 즉시 반복문을 빠져나옵니다.
else if (i == number)
break;
else
cout << "현재 i값 : " << i << endl;
}
return 0;
}