#include<stdio.h>
int Add(int x, int y)
{
int z = x + y;
return z;
}
int main()
{
int a = 0;
int b = 0;
printf("输入两个数字");
scanf_s("%d %d", &a, &b);
int sum = Add(a, b);
printf("两数之和为%d", sum);
return 0;
}
#include<stdio.h>
int Add(int x, int y)
{
int z = x + y;
return z;
}
int main()
{
int a = 0;
int b = 0;
printf("输入两个数字");
scanf_s("%d %d", &a, &b);
int sum = Add(a, b);
printf("两数之和为%d", sum);
return 0;
}