U E D R , A S I H C RSS

데블스캠프2006/월요일/연습문제/if-else/김건영

No older revisions available

No older revisions available



데블스캠프2006/월요일/연습문제/if-else/김건영

1번째 문제
~cpp 
#include<iostream>

using namespace std;

int main()
{
	int value;

	cin >> value;
	
	if(value >= 50 && value <= 100)
	{
		for(int i = 3; i <= value; i = i + 3)
			cout << "3의 배수" << i << endl;

		for(int j = 5; j <= value; j = j + 5)
			cout << "5의 배수" << j << endl;
	}
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:04
Processing time 0.0145 sec