write a function that finds area and volume of a cube when length is input and then write a program to test it. here is what i have so far.
#include
using namespace std;
int multiplication (int l)
{
int area;
area=6*l*l;
return area;
int volume;
volume=l*l*l;
return volume;
}
int main ()
{
int x, z, l;
cout << "Enter the length of cube:" << endl;
cin >> l;
z = multiplication (6,l,l);
x = multiplication (l,l,l);
cout << "The area of the cube is " << z;
cout << "The volume of the cube is" << x;
return 0;
}