fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5.  
  6. scanf("%d",&a);
  7. if(a>=10 && a%2==0){
  8. printf("2桁以上の偶数である");
  9. }
  10. else{
  11. printf("2桁以上の偶数ではない");
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5320KB
stdin
15
stdout
2桁以上の偶数ではない