Define function to calculate the volumn
#include <stdio.h>
double volume(double s1, double s2, double s3);
int main(void)
{
double vol;
vol = volume(12.2, 5.67, 9.03);
printf("Volume: %f", vol);
return 0;
}
double volume(double s1, double s2, double s3)
{
return s1 * s2 * s3;
}
Related examples in the same category