大众信息网

编程计算下面数学表达式的值,其中的 a,b,c,x,y 作为变量。

关注:181  答案:1  手机版
解决时间 2021-08-02 22:06

(1) 1200 / (24 - 4 * 5) (2)y+a%5*(int)(x+y)/2%4

最佳答案

(1) #include <iostream>


using namespace std;


int main()


{ cout << 1200 / (24 - 4 * 5) << endl;


return 0;


}


(2) #include <iostream>


using namespace std;


int main()


{


int a,x,y;


cin >> a ;


cin >> x ;


cin >> y ;


cout << y+a%5*(int)(x+y)/2%4 << endl;


return 0;


}


没调试过,自己弄弄看.

我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!