Created
February 12, 2018 11:27
-
-
Save hsandid/598d649a8f89f84acc970ff1883bf263 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() | |
{ | |
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