fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int n;
  5. scanf("%d",&n);
  6. if (n%400==0 || (n&4==0 && n%100!=0)) printf("Nam nhuan");
  7. else printf("Nam khong nhuan");
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0.01s 5320KB
stdin
2036
stdout
Nam khong nhuan