C++ 代码计算整数立方
#include <iostream>
using namespace std;
int main() {
int x;
cout << '请输入一个整数x: '; // 将双引号改为单引号
cin >> x;
int cube = x * x * x;
cout << 'x的立方是: ' << cube << endl; // 将双引号改为单引号
return 0;
}
原文地址: https://www.cveoy.top/t/topic/pd5E 著作权归作者所有。请勿转载和采集!