From 8485de46ef843bf91e6a56d3b6324809044b3d92 Mon Sep 17 00:00:00 2001 From: Daniele Conti Date: Thu, 30 Oct 2025 17:21:40 +0100 Subject: [PATCH 1/4] feat: added file.cpp --- file.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 file.cpp diff --git a/file.cpp b/file.cpp new file mode 100644 index 00000000..64918eb9 --- /dev/null +++ b/file.cpp @@ -0,0 +1,13 @@ +#include + +int main(){ + double x; + double y; + + cout << "Enter first digit: " << endl; + cin >> x; + cout << "Enter second digit: " << endl; + cin >> y; + cout << "The sum of " << x << " and " << y << "is: " << x+y << endl; + return 0; +} \ No newline at end of file From d1a434818f10879121f61c38528414020cd12ca9 Mon Sep 17 00:00:00 2001 From: Daniele Conti Date: Thu, 30 Oct 2025 17:27:25 +0100 Subject: [PATCH 2/4] chore: added using namespace std --- file.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/file.cpp b/file.cpp index 64918eb9..934c9dd2 100644 --- a/file.cpp +++ b/file.cpp @@ -1,4 +1,5 @@ #include +using namespace std; int main(){ double x; From 0f7f58a519f4ad032ec375598c5ac9448572cbe9 Mon Sep 17 00:00:00 2001 From: Daniele Conti Date: Thu, 30 Oct 2025 18:28:32 +0100 Subject: [PATCH 3/4] fix: fixed issues --- sum.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sum.cpp diff --git a/sum.cpp b/sum.cpp new file mode 100644 index 00000000..33b1d382 --- /dev/null +++ b/sum.cpp @@ -0,0 +1,17 @@ +#include +using namespace std; + +int sum(int x, int y){ + return x+y; +} + +int main(){ + double x; + double y; + cout << "Enter first digit: " << endl; + cin >> x; + cout << "Enter second digit: " << endl; + cin >> y; + cout << "The sum: " << x << " + " << y << "is: " << sum(x, y) << endl; + return 0; +} \ No newline at end of file From 14b5652933c9c0e243e22272352c455f2c0b9c80 Mon Sep 17 00:00:00 2001 From: Daniele Conti Date: Thu, 30 Oct 2025 18:31:12 +0100 Subject: [PATCH 4/4] chore: removed file.cpp --- file.cpp | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 file.cpp diff --git a/file.cpp b/file.cpp deleted file mode 100644 index 934c9dd2..00000000 --- a/file.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -using namespace std; - -int main(){ - double x; - double y; - - cout << "Enter first digit: " << endl; - cin >> x; - cout << "Enter second digit: " << endl; - cin >> y; - cout << "The sum of " << x << " and " << y << "is: " << x+y << endl; - return 0; -} \ No newline at end of file