a002. 簡易加法 - 高中生程式解題系統

題目:

請寫一個程式,讀入兩個數字,並求出它們的和。

<aside> 💡

在基本的input/output外,加上簡單的運算子

</aside>

python

a,b=map(int,input().split())
print(a+b)

c++

#include<bits/stdc++.h>

using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    cout<<a+b<<"\\n";
    return 0;
}