Created
September 22, 2014 23:13
-
-
Save jbernhard/68186137d0f81f0a5f36 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
int main() { | |
double total = 0; | |
double tmp; | |
while (std::cin >> tmp) { | |
total += tmp; | |
} | |
std::cout << total; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment