Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int valor;
- scanf("%d", &valor);
- if(valor % 2 == 0)
- {
- printf("%d e divisivel por 2\n",valor);
- }
- if(valor % 5 == 0)
- {
- printf("%d e divisivel por 5\n", valor);
- }
- if(valor % 10 == 0)
- {
- printf("%d e divisivel por 10\n", valor);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement