请帮忙解决代码中的错误。要求输入2,3,4,得出正确答案
#include <stdio.h> int main() {int a,b,c,x,y; scanf("%d,%d,%d",a,b,c); x=a*b; y=x*c; printf("%d,%d,%d",a,b,c); printf("x=%f\n",x,"y=%f\n",y); }
#include <stdio.h> int main() {int a,b,c,x,y; scanf("%d,%d,%d",a,b,c); x=a*b; y=x*c; printf("%d,%d,%d",a,b,c); printf("x=%f\n",x,"y=%f\n",y); }
2019-03-13
举报