13 lines
155 B
C++
13 lines
155 B
C++
|
#include <iostream>
|
||
|
|
||
|
using std::cout, std::endl;
|
||
|
|
||
|
int cubeR(int& x) {
|
||
|
return x * x * x;
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
int x = 3;
|
||
|
cout << cubeR(x) << endl;
|
||
|
}
|