下面判断ch是大写或者小写英文字母的表达式哪个正确?
A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z'
B: ch >= A && ch <= Z || ch >= a && ch <= z
C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z'
D: A <= ch <= Z || a <= ch <= z
A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z'
B: ch >= A && ch <= Z || ch >= a && ch <= z
C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z'
D: A <= ch <= Z || a <= ch <= z
举一反三
- 下面判断ch是大写或者小写英文字母的表达式是否正确? ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'
- 下面判断ch是大写或者小写英文字母的表达式哪个正确? A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' B: ch >= A && ch <= Z || ch >= a && ch <= z C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z' D: A <= ch <= Z || a <= ch <= z
- 以下哪个选项是判断ch是否为大写字母的正确形式? A: ch >= 'A' && ch <='Z' B: ch <= 'Z' && ch >= 'A' C: 'A' <= ch <= 'Z' D: ch >= 'A' || ch <= 'Z' E: ch >='A' AND ch <='Z' F: ch BETWEEN 'A' AND 'Z"
- 判断字符型变量ch为小写字母的表达式是( )。 A: 'a'<=ch<='z' B: (ch>=a)&&(ch<=z) C: (ch>='a')&&(ch<='z') D: (ch>='a') || (ch<='z')
- 判断字符型变量ch为大写字母的表达式是()。 A: ‘A’<=ch<=‘Z’ B: ch>=‘A’&&ch<=‘Z’ C: ch>=‘A’||ch<=‘Z’ D: ch>=‘A’,ch<=‘Z’