From a3486d89cc720a2ad6dddbcf95f7f067ade57708 Mon Sep 17 00:00:00 2001 From: Adrian Spinali Date: Mon, 8 Sep 2025 11:44:04 -0700 Subject: [PATCH 1/3] detailed math display, closes #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..b2f666a 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 remainder of " << x % y << endl; + cout << "Square Root(" << x << ") = " << sqrt(x) << endl; + cout << "Square Root(" << y << ") = " << sqrt(y) << endl; + cout << x << " ^ " << y << " = " << pow(x, y) << endl; return 0; } From 81f1772cc144a9d61612d08f134beb8779b2494a Mon Sep 17 00:00:00 2001 From: Adrian Spinali Date: Wed, 17 Sep 2025 11:39:56 -0700 Subject: [PATCH 2/3] add workflows --- .github/workflows/actions.yml | 23 +++++++++++++++++++++++ README.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/actions.yml create mode 100644 README.md diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..7f89e86 --- /dev/null +++ b/.github/workflows/actions.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 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b8faec --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# My First Example - Adrian Spinali \ No newline at end of file From cdd7ea02aa64296c0bce7b4cc67b8104d3b0284d Mon Sep 17 00:00:00 2001 From: Adrian Spinali Date: Wed, 17 Sep 2025 11:45:18 -0700 Subject: [PATCH 3/3] update README with markdown --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3b8faec..4c0d885 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ +[![Build C++](https://github.com/OblivionAXiS/MyFirstExample/actions/workflows/actions.yml/badge.svg)](https://github.com/OblivionAXiS/MyFirstExample/actions/workflows/actions.yml) + # My First Example - Adrian Spinali \ No newline at end of file