以下程序的功能是判断输入的一个整数是否能被3或7整除,若能整除,输出YES,否则输出NO。在下划线处入的选项是( )。 #include int main() { int k; printf("Enter a int number : "); scanf("%d", &k ); if ________ printf("YES\n"); else printf("NO\n"); printf("%d\n",k%3); }
A.
( (k%3==0) || (k%7==0) )
B.
(k/3==0) || (k/7==0)
C.
( (k%3=0) || (k%7=0) )
D.
( (k%3==0)&& (k%7==0) )
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】He was caught stealing in the supermarket.But that was kept a secret,never coming to the of his family.