Created
January 25, 2016 10:49
-
-
Save LottieVixen/a29ae1ceb9f5e52efe75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
float score = 0.0 , tmp = 0.0; | |
cin >> tmp; | |
score += tmp; | |
cin >> tmp; | |
score += tmp; | |
cin >> tmp; | |
score += tmp; | |
cout << "Total:\t\t" << score << "\nAverage:\t" << (score / 3); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment