// main.c : Defines the entry point for the console application. // use "gcc -O2 -o a.out main.c VolumeAndDensity.s" to compile #include void VolumeAndDensity(int length, int width, int height, int mass, int *volume, int *density); int main() { int volume, density; int length, width, height, mass; printf("Enter length, width, height, and mass\n"); scanf("%d %d %d %d", &length, &width, &height, &mass); VolumeAndDensity(length, width, height, mass, &volume, &density); printf ("Object dimensions: %d x %d x %d. Mass: %d\n", length, width, height, mass); printf ("Volume is %d\n", volume); printf ("Density is %d\n", density); return 0; }