Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<conio.h>
- int cube(int c);
- int n;
- using namespace std;
- int main()
- {
- cout<<"Enter an integer: ";
- cin>>n;
- cout<<"The cube of "<<n<<" is : "<<cube(n)<<endl;
- return 0;
- }
- int cube(int c)
- {
- c = n * n * n;
- return(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement