回复 10楼 古月可可
重新关闭后再输入就对了,为什么这个isa或者nota,a前面怎么没空格间隔开
#include<stdio.h> int main() { int year, leap; scanf("%d", &year); if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { leap = 1; } else leap = 0; if (leap) printf("%d is", year); else printf("%d is not", year); printf(" a leap year.\n"); }