单项选择题

当条件为5<x<10时,则x=x+1,则以下语句正确的是( )。

A.if 5<x<10 Then x=x+l
B.if 5<x or x<10 Then x=x+1
C.if 5<x and x<10 Then x=x+1
D.if 5<x or x<10 Then x=x+1