Website Summary Files Commits Branches @commit @diff @stats
path: root / Week06 / Exercise13.cpp
blob: 1b9445eccc065b4ccda9655e66bde915d39de63d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

int main() {
	unsigned int number;
	std::cin >> number;

	for (unsigned int divisor = 1; divisor <= number; divisor++) {
		if (number % divisor == 0)
			std::cout << divisor << ' ';
	}
	std::cout << std::endl;

	return 0;
}