4.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;
}

 

posted @ 2023-04-28 20:09  记得关月亮  阅读(6)  评论(0)    收藏  举报