From fde03152a77131bc01b3a13148f65f6510cb3630 Mon Sep 17 00:00:00 2001 From: Michael Rieger Date: Sat, 5 Apr 2008 13:23:09 +0200 Subject: [PATCH] initial check in for cluster expansion project for lateral interactions of CO on Pd(100) surface --- main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 main.cpp diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..49bc11d --- /dev/null +++ b/main.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + + +int main() +{ + int sum = 0; + int value = 0; + + while (std::cin >> value) + sum += value; + std::cout << "sum is: " << sum << std::endl; + return 0; +} + -- 2.11.4.GIT