fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num1;
  5. int num2;
  6.  
  7. printf("give a number 1");
  8. scanf("%d",&num1);
  9. printf("give a number 2");
  10. scanf("%d",&num2);
  11. printf("%d",num1+num2);
  12. if(num1+num2%2==0){
  13. printf("even number");}
  14. else{
  15. printf("odd number");
  16. }
  17.  
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
give a number 1give a number 2-297988115odd number