Computer Science, asked by hashmdfuzail24, 11 months ago

Evaluate the C++ expressions.
int a=5, b=7, c;
c=a*a+b*b;

Answers

Answered by nsopagu
1
Here it is given that a=5 and b=7

so according to our question

c=5×5+7×7

c= 25+49

c=74

Hope it helps mark as brainlist

nsopagu: thanks
Answered by Sidyandex
1

The given C++ expression is int a=5, b=7, c; c=a*a+b*b;

The valuable of a and b is 5 and 7 respectively.  

When we substitute the values, we can get the expression which is given below.

Sol c = 5*5+7*7

C = 74.

Hence, the answer to this given C++ expression is 74.

It is important to substitute the values properly before entering the calculations.

Similar questions
Math, 6 months ago