In mathematics specially in equations in algebra, there are times that square roots and cube roots appear. Square root is the process of multiplying a number by itself. While, cube root is the process of multiplying a number by itself three times to get an answer. Sometimes people tend to confuse these two equations because they sound almost the same.
Thinking about this, I come up with an idea to make a program that can compute for the cube root of a number. This program is used with a float data identifier to allow users enter a number with or without decimal points. Check out the codes below.
1: #include <iostream>
2: #include <conio.h>
3:
4: using namespace std;
5:
6: int main()
7: {
8: float side = 0.0f;
9: float sideCubed = 0.0f;
10: cout << "Enter a real number: ";
11: cin >> side;