evaluate the following c++ expression. int a=5, b=7 c ;. c=a×a+b×b
Answers
Answered by
4
int a=5, b=7 c ;. c=a×a+b×b
c => 5x5+7x7
c => 25+49
c=> 74
Answered by
0
74.
It is a C++ programme that aims to compute the value of 'c' from the given values of 'a' and 'b'.
It can be written as follows. #include <iostream> using namespace std; int main() { int a=5, b=7, c; c=a*a+b*b; cout<<c; return 0; }.
The output of this programme will return the value of 74.
C++ programmes are highly useful in computing the values from a given source.
They are also used for calculating a lot of different variables that are used in research and studies.
Similar questions
Business Studies,
6 months ago
Social Sciences,
6 months ago
Physics,
6 months ago
Math,
1 year ago
Math,
1 year ago
Math,
1 year ago
Physics,
1 year ago