From 9aff5c43eea6cdda8fa3bfdba7adac8a742a7559 Mon Sep 17 00:00:00 2001 From: stakacs2021 Date: Mon, 8 Sep 2025 11:25:51 -0700 Subject: [PATCH 1/5] completed full math display closes #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..3960b4d 100644 --- a/main.cpp +++ b/main.cpp @@ -12,13 +12,13 @@ int main() int x,y; cin >> x >> y; - cout << "Addition: " << x + y << endl; - cout << "Subtraction: " << x - y << endl; - cout << "Multiplication: " << x * y << endl; - cout << "Division: " << x / y << endl; - cout << "Remainder: " << x % y << endl; - cout << "Square Root: " << sqrt(x) << endl; - cout << "Square: " << pow(x, y) << endl; + cout << x << "+" << y << "=" << x + y << endl; + cout << x << "-" << y << "=" << x - y << endl; + cout << x << "*" << y << "=" << x * y << endl; + cout << x << "/" << y << "=" << x / y << "with a remainder of" << x % y << endl; + cout << "Square Root of " << x << "is " << sqrt(x) << endl; + cout << "Square Root of " << y << "is " << sqrt(y) << endl; + cout << x << "^" << y << "=" << pow(x, y) << endl; return 0; } From 756036457f85740fe31ebc8a2b34eb98ff0b9c45 Mon Sep 17 00:00:00 2001 From: stakacs2021 Date: Mon, 8 Sep 2025 11:30:32 -0700 Subject: [PATCH 2/5] actually completed full math display closes #62 --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 3960b4d..6608fb9 100644 --- a/main.cpp +++ b/main.cpp @@ -15,9 +15,9 @@ int main() cout << x << "+" << y << "=" << x + y << endl; cout << x << "-" << y << "=" << x - y << endl; cout << x << "*" << y << "=" << x * y << endl; - cout << x << "/" << y << "=" << x / y << "with a remainder of" << x % y << endl; - cout << "Square Root of " << x << "is " << sqrt(x) << endl; - cout << "Square Root of " << y << "is " << sqrt(y) << endl; + cout << x << "/" << y << "=" << x / y << " with a remainder of " << x % y << endl; + cout << "Square Root of " << x << " is " << sqrt(x) << endl; + cout << "Square Root of " << y << " is " << sqrt(y) << endl; cout << x << "^" << y << "=" << pow(x, y) << endl; return 0; From dfaef74945b9c46e8cea34184d707e0f79b9d76f Mon Sep 17 00:00:00 2001 From: stakacs2021 Date: Wed, 17 Sep 2025 11:39:36 -0700 Subject: [PATCH 3/5] addingworkflow --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ README.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 README.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1ddab56 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build C++ + +on: + push: + branches: "**" + pull_request: + branches: [ main ] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y -f build-essential g++ cmake + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: make clean && make diff --git a/README.md b/README.md new file mode 100644 index 0000000..2af4174 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +testing workflows From 48cb3b3c3de85485a8a50e4fc781d8ed07036e08 Mon Sep 17 00:00:00 2001 From: Stephan Takacs <55170146+stakacs2021@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:45:04 -0700 Subject: [PATCH 4/5] Add build status badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2af4174..c6d426a 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ testing workflows +[![Build C++](https://github.com/stakacs2021/MyFirstExample/actions/workflows/build.yml/badge.svg)](https://github.com/stakacs2021/MyFirstExample/actions/workflows/build.yml) From 160e8890263a8db2680ebb91a2890ca7cb3b9994 Mon Sep 17 00:00:00 2001 From: Stephan Takacs <55170146+stakacs2021@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:48:33 -0700 Subject: [PATCH 5/5] Fix formatting in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6d426a..8487526 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -testing workflows [![Build C++](https://github.com/stakacs2021/MyFirstExample/actions/workflows/build.yml/badge.svg)](https://github.com/stakacs2021/MyFirstExample/actions/workflows/build.yml) +testing workflows