#include <iostream> using namespace std; void box(int length, int width, int height); // box()'s prototype int main() { box(7, 20, 4); box(50, 3, 2); box(8, 6, 9); return 0; } void box(int length, int width, int height) { cout << "volume of box is " << length * width * height << "\n"; }
volume of box is 560 volume of box is 300 volume of box is 432