Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- int i,n, valor;
- printf("digite o numero do qual deseja obter seus divisores:\n",n);
- scanf("%d",&n);
- for(i=2;i<=n;i++)
- {
- if(n%i==0)valor = i;
- printf("%d\n",valor);
- }
- system("PAUSE");
- return 0;
- }
Add Comment
Please, Sign In to add comment