设y为int型变量,请写出描述“y是偶数”的表达式()。
A. y%2==0
B. y==0
C. y/2==0
D. y/2=0
判断char型变量ch是否为大写字母的正确表达式是 ()。
A. ch>=A&& ch<=Z
B. ch>='A'&& ch<='Z'
C. A<=ch<=Z
D. 'A'<=ch<='Z'
当a=3,b=2,c=1时,表达式f=a>b>c的值是()
A. 3
B. 0
C. 1
D. 2
试编程判断输入的正整数是否既是5又是7的整倍数。若是,则输出yes;否则输出no,下面程序段哪个能实现()
A.
B. includevoid main(){ int a;scanf("%d",a);if(a%5==0&&a%7==0)printf("yes");else printf("no");}
C. B.
D. includevoid main(){ int a;scanf("%d",&a);if(a%5==0&&a%7==0)printf("yes");else printf("no");}
E. C.
F. includevoid main(){ int a;scanf("%d",&a);if(a%5==0||a%7==0)printf("yes");else printf("no");}
G. D.
H. includevoid main(){ int a;scanf("%d",&a);if(a%5=0&&a%7=0)printf("yes");else printf("no");}