Program to find the cube of the given integer

Here is the Program to enter an integer and output the cube of that integer. Its simple program work best on DEV C++. This program takes in an integer a as a screen input from the user. It then determines the integer's cube and outputs it using the 'cout' command

Here is the Program to enter an integer and output the cube of that integer. Its simple program work best on DEV C++. This program takes in an integer a as a screen input from the user. It then determines the integer's cube and outputs it using the 'cout' command

## Program to find the cube of the given integer

#include <iostream>
using namespace std;
int cube(int x); //The prototype.
int main()
{
int a;
cout << "Enter an integer : ";
cin>>a;
cout << "The cube of " << a << " is : " << cube(a) << endl; //Call the function cube(a).
}
//Defining the function.
int cube(int x)
{
int y;
y=x*x*x;
return(y);
}

Here is the Output:

Name

ltr
item
MindxMaster: Program to find the cube of the given integer
Program to find the cube of the given integer
Here is the Program to enter an integer and output the cube of that integer. Its simple program work best on DEV C++. This program takes in an integer a as a screen input from the user. It then determines the integer's cube and outputs it using the 'cout' command
https://1.bp.blogspot.com/-2WACb_aJP_8/VrgyRcexLnI/AAAAAAAABfc/Db0BNGifeN8/s1600/Untitled.jpg
https://1.bp.blogspot.com/-2WACb_aJP_8/VrgyRcexLnI/AAAAAAAABfc/Db0BNGifeN8/s72-c/Untitled.jpg
MindxMaster
https://www.mindxmaster.com/2016/02/program-to-find-cube-of-entered-integer.html
https://www.mindxmaster.com/
https://www.mindxmaster.com/
https://www.mindxmaster.com/2016/02/program-to-find-cube-of-entered-integer.html
true
5332415103371288268
UTF-8