#include<iostream> using namespace std; int sum(int x,int y); int main() { int a,b,c; cout<<"请你输入两个整形数字;"<<endl; cin>>a>>b; c=suma(a,b); cout<<"Then sum of a and b is:"<<sum<<endl; return 0; } int sum(int x,int y){ return x+y; }
转载于:https://www.cnblogs.com/aipopo/p/7831958.html