# C Program to Find Volume and Surface Area of a Cube

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

## C Program to Find Volume and Surface Area of a Cube

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

• What is a cube?
• ## 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.

# What is a cube?

The cube is a three-dimensional box with all the sides are equal. The cube is a box made with squares at all of its six faces.

## Program description:-

In today’s tutorial, we will create a program, that will calculate the Volume and Surface Area of a Cube using C programming. First, take the side of the Cube as input from the user. Then we will find the surface area and the volume of a cube using the mathematical expression and calculations. At last, we will print the Volume and Surface Area of a Cube.

## Output:-

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

•  l = it will hold the integer value for the input length of the cube.
•  sa = it will hold the integer the surface area of the cube
•  vl = it will hold the value of the volume of the cube.

Taking the input length of the side of the cube.

Calculating the surface area & volume of the cube.

Printing the volume and surface area of the Cube.

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