logoISU  

CS256 - Principles of Structured Design

Fall 2021

Displaying ./code/cs256su21code/jun09/volCylinder.c

#include <stdio.h>
#include "circle.h"

/*

	finds the volume of a cylinder

*/
int main(){

	double radius, height;

	printf("Enter the radius: ");
	scanf("%lf", &radius);

	printf("Enter the height: ");
	scanf("%lf", &height);


	double volume = volCylinder(radius, height);

	printf("The volume is %f\n", volume);


	return 0;
}