#include <stdio.h> int Sub(int a, int b) { return (a- b); } main() { int x, y, result = 0; scanf("%d,%d", &x,&y ); result = Sub(x,y ) ; printf("result = %d\n",result); }
当从键盘输入:6,3运行结果为:
12
3
result=3
result = 3
result =3
0
resuly = 3
用户登录可进行刷题及查看答案
登录后提交答案