diff --git a/src/main.cpp b/src/main.cpp index d1b3bd0..1c04905 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,15 +1,13 @@ #include -const std::string& get_greeting() { - return "Hello, world!"; -} - -// Add the number of things. -int add_6(int cx) { - return 6 + cx; -} int main() { - std::cout << "Hello, world!" << add_6(5) << std::endl; - return 0; + + auto max_value = 100; + auto total; + for (int i = 0; i < max_value; ++i) { + total += i; + } + std::cout << "Total: " << total << std::endl; + }