下面程序的功能是:从输入的正整数中选3个数进行输出,要求这些数都是2的倍数,请填空。 main() { int a,i=0; scanf('%d',&A); do { if(a>0&&a%2==0) {printf('%d/n',A);i++;} if(i!=3) { scanf('%d',&A);} }while(( )); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】下面程序段的输出结果为 public class Test { int a, b; Test() { a=100; b=200; } Test(int x,int y) { a=x; b=y; } public static void main(String args[]) { Test Obj1=new Test(12,45); System.out.println('a=+Obj1.a+' b...
【单选题】3下面程序段的输出结果为( )。public class Test{ int a, b Test() { a=100 b=200 } Test(int x, int y) { a=x b=y } public static void main(String args[]) { Test Obj 1 = new Test(12,45 ) System.out.println('a='+Obja+' ...