#include<stdio.h>
#include<stdlib.h>
int x,y;
int callTotal();
int main(){
int tot;
printf("請輸入x,y的值: ");
scanf("%d %d",&x,&y);
tot=callTotal();
printf("%d+%d=%d\n",x,y,tot);
system("pause");
return 0;
}
int callTota(void){
int sum,x,y;
sum=x+y;
return sum;
}
沒有留言:
張貼留言