/* Part3 演習問題3 */ #include <stdio.h> int main(void) { int a,b,c,d,e ; int x,y,z ; a=12 ; b=6 ; c=45 ; d=3 ; e=7 ; x = a*b + c/d + e ; y = (a*b) + (c/d) + e ; z = a * (b+c)/(d+e) ; printf("x=%d y=%d z=%d\n",x,y,z) ; return(0) ; } |
x=94 y=94 z=61 |