题目:
选择题
如果a为奇数且a的绝对值小于100,则打印“ok”,否则打印“Error”,表示这个条件的单行格式If语句是( )。
- A. If Int(a/2)<>a/2 And Abs(a)<100 Then Print "Error" Else Print "ok"
- B. If a Mod 2=0 And (a>=100,a<=-100) Then Print "ok" Else Print "Error"
- C. If a Mod 2<> 0 And a<100 And a>-100 Then Print "ok" Else Print "Error"
- D. If Int(a/2)=a/2 And Abs(a)<100 Then Print "ok" Else Print "Error"
答案:
<查看本题扣1积分>