Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int N;
- scanf("%d", &N);
- for(int i = 1; i <= N; i++) {
- if(N % i == 0) {
- printf("%d, ", i);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement