Computer Science, asked by amitdubey1999, 1 year ago

WAP to find cube root in C++ programming language.


wwwalison8888a: Can this be written in form of java....

Answers

Answered by wwwalison8888a
4

class Alison
{private int n=0,s=0;
public void accept(int n)
{s=math.sqrt(n);
System.out.println("The cube root is"+s);
}}
Variable Description....
s=int=to calculate the cube root.
n=int=to input the number of which cube root is to be taken out.

If any doubts plz comment below..


amitdubey1999: its in java..bro plz send in C++ progamming if you know else...thanks.
Similar questions