Skip to content

Instantly share code, notes, and snippets.

@jbernhard
Created September 22, 2014 23:13
Show Gist options
  • Save jbernhard/68186137d0f81f0a5f36 to your computer and use it in GitHub Desktop.
Save jbernhard/68186137d0f81f0a5f36 to your computer and use it in GitHub Desktop.
#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