Convert the expression a²+b²+b²=c² into equivalent C++ expression.
Answers
Answered by
1
Answer:
The formula of (a + b)2 is given below.
(a + b)2 = a2 + b2 + 2ab
Now we will convert this into a valid C expression.
Let x = (a + b)2
= a2 + b2 + 2ab
= (a * a) + (b * b) + (2 * a * b)
Similar questions