\号改%号。printf括号里&号去掉撒。最后还要记得加大括号啊!
#include "Stdio.h"
#include "Conio.h"
int main(void)
{
int ch;
printf("Please enter a year:");
scanf("%d",&ch);
if((ch%4==0&&ch%100!=0)||(ch%400==0))
printf("%d is a leap year\n",ch);
else
printf("%d is not a leap year",ch);
getch();
return 0;
}
#include "Stdio.h"
#include "Conio.h"
int main(void)
{
int ch;
printf("Please enter a year:");
scanf("%d",&ch);
if((ch%4==0&&ch%100!=0)||(ch%400==0))
printf("%d is a leap year\n",ch);
else
printf("%d is not a leap year",ch);
getch();
return 0;
}
当你只有一个目标时,整个世界都会给你让路