Computer Science, asked by parthasati15, 4 months ago

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 soupals1upv
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 lakshmi90roy
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