Skip to content

Instantly share code, notes, and snippets.

@LottieVixen
Created January 25, 2016 10:49
Show Gist options
  • Save LottieVixen/a29ae1ceb9f5e52efe75 to your computer and use it in GitHub Desktop.
Save LottieVixen/a29ae1ceb9f5e52efe75 to your computer and use it in GitHub Desktop.
#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