Skip to content

Instantly share code, notes, and snippets.

@joffilyfe
Created January 18, 2015 16:31
Show Gist options
  • Save joffilyfe/655328203ab457c02cb6 to your computer and use it in GitHub Desktop.
Save joffilyfe/655328203ab457c02cb6 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void) {
int entrada, i;
i = entrada = 0;
scanf("%d", &entrada);
for (i = 1; i <= entrada; i++) {
if (entrada % i == 0) {
printf("%d\n", i);
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment