From d53655f4f460f96f5877302efd5dd7602bbd517c Mon Sep 17 00:00:00 2001 From: John Burton Date: Sun, 3 May 2026 21:27:57 +0100 Subject: [PATCH] New source --- src/main.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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; + }