Guest User

Untitled

a guest
Feb 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.     int i,n, valor;
  7.     printf("digite o numero do qual deseja obter seus divisores:\n",n);
  8.     scanf("%d",&n);
  9.     for(i=2;i<=n;i++)
  10.     {
  11.                      
  12.                       if(n%i==0)valor = i;
  13.                       printf("%d\n",valor);
  14.                       }
  15.     system("PAUSE");   
  16.   return 0;
  17. }
Add Comment
Please, Sign In to add comment