?调用函数实现输入数字相加
代码示例:
#include <stdio.h>
int Add(int x, int y)
{
int Sum = 0;
Sum = x + y;
return Sum;
}
int main()
{
int Num1 = 0;
int Num2 = 0;
int sum = 0;
scanf("%d", &Num1);
scanf("%d", &Num2);
sum = Add(Num1, Num2);
printf("%d\n", sum);
return 0;
}