write a complete Java program that invokes a function satis( ) to find whether four integers a, b, c, d sent to satis( ) satisfy the equation a3+b3+c3 = d3 or not. The function satis( ) returns o if the above equation is satisfied with given four numbers otherwise returns -1
Answers
Answered by
3
class s1upv
{ void statis ( int a , int b , int c , int d )
{
if ( (math.pow(a,3) + Math.pow ( b,3) + Math.pow ( c,3 ) ) = = Math.pow(d,3) )
return ( 0 ) ;
else
return (-1);
}
}
Answered by
0
Explanation:
It's just... I think the whole thing would be a little more fun with someone to talk to.
É só que... acho que as coisas seriam mais divertidas com alguém para conversar.
Similar questions
Math,
2 months ago
India Languages,
2 months ago
India Languages,
4 months ago
Chemistry,
9 months ago
Math,
9 months ago