Javatpoint Logo
Javatpoint Logo

C++ Math cbrt()

This function is used to find the cube root of a given number.

Consider a argument 'arg' :

Syntax

Syntax would be :

Parameter

arg : It is the value of float or integer type.

Return value

It returns the cube root of a given number arg.

Example 1

Let's see a simple example when argument 'arg' is of integer type

Output:

Cube root of a number is :2

Example 2

Let's see a simple example when an argument 'arg' is of float type.

Output:

Cube root of a number is :2.33921

Next TopicC++ Math Functions




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA