nikolas_serafini

Lista 2 - Exercício 4

May 24th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int num;
  7.  
  8.     printf("Entre com o numero : \n"); scanf("%d",&num);
  9.     if ((num%2)==0)
  10.     {
  11.         printf("O numero inserido eh par!\n");
  12.         return 0;
  13.     }
  14.     else
  15.     {
  16.         printf("O numero inserido eh impar!\n");
  17.         return 0;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment