C Program to Find Volume and Surface Area of a Cone

In this tutorial you will learn about the C Program to Find Volume and Surface Area of a Cone and its application with practical example.

C Program to Find Volume and Surface Area of a Cone

In this tutorial, we will learn to create a C program that will Find the Volume and Surface Area of a Cone in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • Mathematical operations in C programming.

Algorithm:-

Program description:-

In today’s tutorial, we will create a program, that will calculate the Volume and Surface Area of a Cone using C programming. First, take the input radius and the height of the cone from the user. Then we will find the surface Area and the volume of a cone using the mathematical functions and calculations in the c programming language. At last, we will print the Volume and Surface Area of a cone.

Program Code:-

Output:-

In the above program, we have first initialized the required variable.

  •  rd = it will hold the integer value for the input radius of the cone.
  •  ht = it will hold the integer value for the input height of the cone.
  •  vm = it will hold the value of the volume of the cone.

Taking Input the radius and height of the cone from the user.

Calculating the surface area & volume of the cone.

Printing the volume and surface area of the cone.

In this tutorial we have learn about the C Program to Find Volume and Surface Area of a Cone and its application with practical example. I hope you will like this tutorial.