As I was going through my High School and College years I learned how to calculate the area and volume of a cube and so much more things. To share and help you with calculating the area and volume of a cube I made a program that allows a user to calculate the said areas easily. Check out the sample code below.
1:
2: #include <conio.h>
3: #include <stdio.h>
4: #include <math.h>
5:
6: float sol1(float y, float n1)
7: {
8: return y = n1 * n1 * n1;
9:
10:
11: }
12: float sol2(float z, float n1)
13: {