Answer to Question #237235 in C++ for avr

Question #237235

What is printed by the following code?

#include <iostream>

#include <math.h>

using namespace std;

int main(int argc, const char * argv[]) {

  // insert code here...

  double Num1, Num2;

   

  cout << "Please enter two float number : ";

  cin >> Num1 >> Num2;

  double average = (Num1 + Num2)/2;

  cout << "The average between these number is :m" <<average << endl;

  cout << "The nearest integer around the average is : " << round(average)<<endl;

  return 0;


1
Expert's answer
2021-09-15T00:10:42-0400

The answer to your question is provided in the image:

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS