10.24 work

#include<iostream>
using namespace std;
int sum(int x,int y);
int main(){
    int a,b,s;
    cout<<"enter two number"<<endl;
    cin>>a>>b;
    s=sum(a,b);
    cout<<"the sum of a and b"<<s<<endl;
    return 0;
}
    int sum(int x,int y){
        return x+y;
    }

原文地址:https://www.cnblogs.com/sanyeai/p/7795350.html