fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=0;
  6. scanf("%d",&a);
  7. if(a%2==0)
  8. printf("a为偶数");
  9. else
  10. printf("a为奇数");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5288KB
stdin
2
stdout
a为偶数