有道入门题老整不对,帮下忙看哪出错了
#include<stdio.h>int main()
{
int n=5;
int number;
printf("Entre a number that between 1 and 10 you want write:\n");
scanf("%d",&number);
if(number>n)
{
printf("The number is greater than 5");
if(number<n)
printf("The number is less than 5");
}
getch();
}
编译正确,执行结果输入任意一数都提示比5大,怎么回事?