Lab 02: Sum, Average, Max, and Min

Objectives

  • Using cout to output text and the value of variables
  • Using cin to input data from the user
  • Using if statements to make decisions based on the truth or falsity of a condition
  • Using arithmetic operators to perform mathematical operations

Problem

Write a program to ask user to input four integer values from the keyboard, then display the sum, average, product, smallest, and largest of these numbers. The screen dialogue

Procedures

int main()
{
   int x;

}

Questions