diff options
Diffstat (limited to 'test/hello.cpp')
| -rw-r--r-- | test/hello.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/hello.cpp b/test/hello.cpp new file mode 100644 index 0000000..9337000 --- /dev/null +++ b/test/hello.cpp @@ -0,0 +1,16 @@ +#include <print> + +auto add(int a, int b) -> int +{ + int result = a+b; + return result; +} + +auto main() -> int +{ + int a = 50; + int b = 67; + int c = add(a, b); + + std::println("{} + {} = {}", a, b, c); +} |
