Your IP address will be publicly visible if you make any edits.
1~10사이 숫자 출력, 5 제외 (continue 문 사용)
From ZeroWiki
More actions
#include <iostream>
using namespace std;
int main()
{
for ( int i = 1 ; i <= 10 ; i++)
{
if ( i == 5 )
continue;
else
cout << i << endl;
}
system("pause");
return 0;
}