#include <stdio.h>//有这个才能打印出来
int p = 10;
int ADD(int x,int y)//定义一个函数
{
int z = x + y;
return z;
}
int main()
{
int i = 40;
int q = 50;
int sum = ADD(i,q);
printf("sum=%d\n",sum);
return 0;
}
int main()
{
int a = 12;
int b = 23;
int sum = a + b;
printf("sum=%d\n",sum);
return 0;
}
有任何错误请指导我,谢谢