write a program to input a number calculate its square root and cube root . Finally display the result by rounding it off . in java programming
Answers
Answered by
2
Answer:
class cube
{
public static void main(String args[])
{
int a,b',
a= 3',
b= a*a*a',
System.out.println(b='+b')',
}
}
for square
just a minor change :-
instead of 3 a's write only 2 a like
b=a*a',
Similar questions