Does cube(side) send the value of side to s at the top?
inline float cube(const float s) {return s*s*s;}
int main() {
float side; cin >> side;
cout << "Volume of cube with side" << side<< "is "
<< cube(side) << endl;
return 0;
}
|
Results 1 to 18 of 18
Threaded View
|
Click Here to Expand Forum to Full Width |