C语言编程求下面表达式的值x+a%3*(int)(x+y)%2/4(已知x=2.5,a=7,y=4.7)

问题描述:

C语言编程求下面表达式的值
x+a%3*(int)(x+y)%2/4(已知x=2.5,a=7,y=4.7)

#include
void main()
{
double x=2.5;
int a=7.0;
double y=4.7;
double z;
z=x+a%3*(int)(x+y)%2/4;
printf("%f",z);
}