已知:a=7,x=2.5,y=4.7,计算算术表达式x+a%3*(int)(x+y)%2/4的值.试编程上机验证.求大神帮助

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/24 00:14:26
已知:a=7,x=2.5,y=4.7,计算算术表达式x+a%3*(int)(x+y)%2/4的值.试编程上机验证.求大神帮助
x){}KhkSakgSikgbѳ9_,\b߾{+U42J45*+5UMjyڰGL{Ɏgsv\b}޳MO,tvI*ҧv6O̼ҔT< j @nc_PePe E@4 *[UC<%*MkZ<;o 

已知:a=7,x=2.5,y=4.7,计算算术表达式x+a%3*(int)(x+y)%2/4的值.试编程上机验证.求大神帮助
已知:a=7,x=2.5,y=4.7,计算算术表达式x+a%3*(int)(x+y)%2/4的值.试编程上机验证.求大神帮助

已知:a=7,x=2.5,y=4.7,计算算术表达式x+a%3*(int)(x+y)%2/4的值.试编程上机验证.求大神帮助
#include main(){ float x=2.5; int a=7; float y=4.7; double z; z=x+a%3*(int)(x+y)%2/4; printf("z=%10f\n",z); }