summaryrefslogtreecommitdiff
path: root/tests/arithmetic.c
diff options
context:
space:
mode:
authorDavid Moc <personal@cdatgoose.org>2026-03-05 23:38:49 +0100
committerDavid Moc <personal@cdatgoose.org>2026-03-05 23:38:49 +0100
commit0385817bb1301a778bb33f8405a435293b9f8905 (patch)
tree53f4b6f13e393bd368c37ba4363826b46940dfd3 /tests/arithmetic.c
parent262abf9b552a168ef3ae91f91af97683f16420a7 (diff)
Pushing to repo for safety.
Diffstat (limited to 'tests/arithmetic.c')
-rw-r--r--tests/arithmetic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/arithmetic.c b/tests/arithmetic.c
new file mode 100644
index 0000000..61951d8
--- /dev/null
+++ b/tests/arithmetic.c
@@ -0,0 +1,10 @@
+int main() {
+ int a = 5;
+ int b = 3;
+ int sum = a + b;
+ int diff = a - b;
+ int prod = a * b;
+ int quot = a / b;
+ int mod = a % b;
+ return sum + diff + prod + quot + mod;
+}