summaryrefslogtreecommitdiff
path: root/tests/arithmetic.c
diff options
context:
space:
mode:
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;
+}