Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int num;
- printf("Entre com o numero : \n"); scanf("%d",&num);
- if ((num%2)==0)
- {
- printf("O numero inserido eh par!\n");
- return 0;
- }
- else
- {
- printf("O numero inserido eh impar!\n");
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment