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/seminar01_overload/02_cubev/cubev.cpp

12 lines
154 B
C++
Raw Normal View History

2022-09-05 18:29:46 +03:00
#include <iostream>
using std::cout, std::endl;
int cubeV(int x) {
return x * x * x;
}
int main() {
int x = 3;
cout << cubeV(x) << endl;
}