This repository has been archived on 2023-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
mipt_cpp/term1/seminar01_overload/03_cuber/cuber.cpp

13 lines
155 B
C++
Raw Normal View History

2023-02-25 19:34:24 +03:00
#include <iostream>
using std::cout, std::endl;
int cubeR(int& x) {
return x * x * x;
}
int main() {
int x = 3;
cout << cubeR(x) << endl;
}