同样的代码,第二个正常,第一个就错误了?
if(year>=2)
{
if(sale > 100)
{
printf("%s\n","恭喜你获得优秀员工奖!");
}
else
{
printf("%s\n","很遗憾,期望你再接再厉");
}
}
else
{
print("%s\n","很遗憾,期望你再接再厉");
}
/*if(year>=2)
{
if(sale > 100)
{
printf("%s\n","恭喜你获得优秀员工奖!");
}
else
{
printf("%s\n","很遗憾,期望你再接再厉");
}
}
else
{
printf("%s\n","很遗憾,期望你再接再厉");
}
*/