Skip to content

Instantly share code, notes, and snippets.

@hsandid
Created February 12, 2018 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsandid/598d649a8f89f84acc970ff1883bf263 to your computer and use it in GitHub Desktop.
Save hsandid/598d649a8f89f84acc970ff1883bf263 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
double score1, score2, score3, score4, score5 ,average;
cout<<"Enter five test scores: "<<endl;
cin>>score1>>score2>>score3>>score4>>score5;
average=(score1+score2+score3+score4+score5)/5;
cout<<"You entered: "<<score1<<" "<<score2<<" "<<score3<<" "<<score4<<" "<<score5<<endl;
cout<<"The score average is "<<average;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment