Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int valor;
  6.  
  7.     scanf("%d", &valor);
  8.  
  9.     if(valor % 2 == 0)
  10.     {
  11.         printf("%d e divisivel por 2\n",valor);
  12.     }
  13.     if(valor % 5 == 0)
  14.     {
  15.         printf("%d e divisivel por 5\n", valor);
  16.     }
  17.     if(valor % 10 == 0)
  18.     {
  19.         printf("%d e divisivel por 10\n", valor);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement