填空题 以下程序运行时输_出到屏幕的结果第一行是 【17】 ,第二行是 【18】 。 #include typedef struct fact { int m,z; }FACT; FACT fun1(FACT t1,FACT t2) {FACT t3; t3.m=t1.m*t2.m ; t3.z=t1.z*t2.m+t2.z*t1.m; retum t3; } FACT fun2(FACT t) {int m,n,k; m=t.m; n=t.z; while(k=m%n) { m=n;n=k; } t.m=t.m/n; t.z=t.z/n; return t; } void main1 {FACT s,s1={8,4},s2={6,5}; s=fun1(sl,s2); printf("%d,%d/n",s.z,s.m); s=fun2(s); printf("%d,%d",s.z,s.m); }
  • 1、
【正确答案】 1、(17) 64,48 (18) 4,3    
【答案解析】