Algorithm design using conditional statements

CAN ANYONE PLEASE HELP ME!!!!


Algorithm design using conditional statements

Exercise 2. Complete the following program so that it reads three test scores from the standard input and displays the largest of the three on the screen monitor.

// This program finds the largest of three test scores and
// displays it.
// PLACE YOUR NAME HERE

#include <iostream>

using namespace std;

int main() {

float testScore1, testScore2, testScore3;

cout <<"Enter score for test 1: " << endl;
cin >> testScore1;
cout << "Enter score for test 2: " << endl;
cin >> testScore2;
cout <<"Enter score for test 3: " << endl;
cin >> testScore3;

/* To BE FILLED */

return 0;
}

Topic archived. No new replies allowed.