有以下程序:#include <stdio.h> ma

有以下程序:

#include <stdio.h>
main()
{
 int x;
 scanf("%d",&x);
 if(x>10) printf("1");
 else if(x>20) printf("2");
 else if(x>30) printf("3");
}

若运行时输入:35<回车>,则输出结果是( )。 

答案
D

题目信息

题号:4745
题型:单选题
难度:普通