3

当我运行此代码时,它总是给出“总数为 1959530850”。我不明白为什么会这样?这是我的代码:

#include <iostream>

using namespace std;

int main()
{
    int a,b,total;
    cout << "Enter First Number" << endl;
    cin >> a;
    cout << "Enter Second Number \n";
    cin >> b;
    total = a + b;
    cout << "Total Number is "<< total << endl;
    return 0;
}
4

0 回答 0