Skip to content

Commit

Permalink
Update hello.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtlessnerd authored Feb 1, 2024
1 parent 90d2728 commit 4bec581
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion hello.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
// Copyright 2024 Abhay
#include <iostream>

void printMessage(const std::string& message) {
std::cout << message << std::endl;
}

int addNumbers(int a, int b) {
return a + b;
}

int main() {
std::cout << "hello world" << std::endl;
printMessage("Hello, Clang Format!");

int result = addNumbers(5, 7);
std::cout << "Result: " << result << std::endl;

return 0;
}

0 comments on commit 4bec581

Please sign in to comment.