This C++ program asks the user to input two real numbers, stores them as doubles x and y, adds the numbers together and divides the sum by 2 to calculate the average, then displays the result. It uses input/output streams to prompt the user, receive input, and output the calculated average.
This C++ program asks the user to input two real numbers, stores them as doubles x and y, adds the numbers together and divides the sum by 2 to calculate the average, then displays the result. It uses input/output streams to prompt the user, receive input, and output the calculated average.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
This C++ program asks the user to input two real numbers, stores them as doubles x and y, adds the numbers together and divides the sum by 2 to calculate the average, then displays the result. It uses input/output streams to prompt the user, receive input, and output the calculated average.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd