#include <iostream>
int mycube(int);
using namespace std;
int main(){
int side;
cout << "enter the cube side: " << endl;
cin >> side;
cout << "the volume of the cube is: " << mycube(side) << endl;
return 0;
}
int mycube(int side){
return side * side * side;
}
一个c++小程序
最新推荐文章于 2024-08-22 17:56:53 发布