设double x=2.5,y=4.7,int a=7,求x+a%3*(int)(x+y)%2/4?
发布网友
发布时间:2024-10-08 12:58
我来回答
共2个回答
热心网友
时间:2024-12-05 09:29
x+a%3*(int)(x+y)%2/4的值为:
2.5
因为:
2.5+7%3*(int)(2.5+4.7)%2/4
=2.5+1*7%2/4
=2.5+7%2/4
=2.5+1/4
=2.5+0
=2.5
热心网友
时间:2024-12-05 09:30
2.5+7%3*(int)(2.5+4.7)%2/4
=2.5+7%3*7%2/4
=2.5+7%21%0.5
=2.5+7%0.5
=2.5+0
=0