^ E D R , A S I H C RSS
1 »

10사이 숫자 출력, 5 제외 (continue 문 사용)

No older revisions available

No older revisions available



~cpp
#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;


}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:08
Processing time 0.0278 sec