summaryrefslogtreecommitdiff
path: root/ex1
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-10-28 14:45:16 -0500
committerBrad Clawsie <brad@b7j0c.org>2026-10-28 14:45:16 -0500
commitcbc3babb5326f38dd4c1c53bf8ad5b59dd72c0b5 (patch)
tree045e1410443f1e61c05635dc7b47920a67cb44c8 /ex1
parent0b8d1ee7ad7efdbd62b84f5dc2be8225011246ac (diff)
feat: ex1
Diffstat (limited to 'ex1')
-rw-r--r--ex1/Cargo.lock7
-rw-r--r--ex1/Cargo.toml6
-rw-r--r--ex1/src/main.rs7
3 files changed, 20 insertions, 0 deletions
diff --git a/ex1/Cargo.lock b/ex1/Cargo.lock
new file mode 100644
index 0000000..7556768
--- /dev/null
+++ b/ex1/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "ex1"
+version = "0.1.0"
diff --git a/ex1/Cargo.toml b/ex1/Cargo.toml
new file mode 100644
index 0000000..58f71bd
--- /dev/null
+++ b/ex1/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "ex1"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
diff --git a/ex1/src/main.rs b/ex1/src/main.rs
new file mode 100644
index 0000000..a09301c
--- /dev/null
+++ b/ex1/src/main.rs
@@ -0,0 +1,7 @@
+fn mult(a: u32, b: u32) -> u32 {
+ a * b
+}
+
+fn main() {
+ println!("{}", mult(8, 4));
+}