是C++的
#include <iostream>
using namespace std;
int main ()
{
int num1 , num2 , sum;
sum = num1 + num2;
cout << " please enter two number:" << endl;
cin >> num1 >>num2;
cout << "the sum is " << sum;
retuen 0;
}
让他可以正常运行...
參考答案:#include <iostream>
using namespace std;
int main ()
{
int num1 , num2 , sum;
cout << " please enter two number:" << endl;
cin >> num1 >>num2;
sum = num1 + num2; //位置错误了
cout << "the sum is " << sum;
return 0; //retuen 0; 关键字错了
}