4.28打卡

Sunyiran / 2023-04-28 / 原文

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int fun2(int m){
    return m*m;
}
int fun1(int x,int y){
    return fun2(x)+fun2(y);
}
int main()
{
    int a,b;
    cout<<"please enter two integers(a and b):";
    cin>>a>>b;
    cout<<"the sum of square of a and b: "<<fun1(a,b)<<endl;
    return 0;
}