fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int num = 345;
  5.  
  6. if(num%2==0)
  7. printf("O número é par!\n");
  8.  
  9. else
  10. printf("O número é ímpar!\n");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
O número é ímpar!