libbygillespie1749 libbygillespie1749
  • 18-01-2020
  • Computers and Technology
contestada

Write an expression that computes the integer average of the int variables exam1 and exam2 (both declared and assigned values).

Respuesta :

ijeggs
ijeggs ijeggs
  • 18-01-2020

Answer:

#include <iostream>

using namespace std;

int main()

{

   int exam1 = 70;

   int exam2 = 85;

   int examAverage;

   examAverage = (exam1+exam2)/2;

   cout <<"The Average of Exam1 and Exam2 is: "<<examAverage<<endl;

   return 0;

}

Explanation:

Using the C++, we declare the three variables all of type

exam1

exam2 and

examAverage

We assign initial values of 70 and 85 to exam1 and exam2 respectively

Answer Link

Otras preguntas

What is the molarity of a solution made by dissolving 8.60 g of a solid with a molar mass of 21.50 g/mol in 280.0 mL of solution.
help help help help
Luna flew from Boston to Orlando with a stop in Atlanta to switch planes. The flight from Boston to Atlanta was 3 hours and 30 minutes long. Luna was in Atlanta
who was the man who said I have a dream lol
Please hurry I will mark you brainliest
donde veo haikyuu en español sin lag ni virus :C (la segunda, tercera y cuarta temporada)
Chakravarthy knew there were exactly sixty-seven shops on Patel Street. He had written down all their names and addresses in his notebook . What does this tell
A married couple had a combined annual income of $81,000. The wife made $9000 more than her husband. What was each of their incomes?
Which is the Simplified form r-7+s-12
Which of the following is NOT an advantage of Egypt's geography? A. Natural desert barrier B. Easily defensible mountains and hills C. Rivers and waterways to t