summaryrefslogtreecommitdiff
path: root/cpp/arrays.cpp
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:45 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:45 -0700
commita33d49ac4d1ce554c72770927957a089b4023bf1 (patch)
tree17ea036b5a0e8b488dc236f0ce48a275ecd80ef8 /cpp/arrays.cpp
Diffstat (limited to 'cpp/arrays.cpp')
-rw-r--r--cpp/arrays.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/arrays.cpp b/cpp/arrays.cpp
new file mode 100644
index 0000000..b7bbe36
--- /dev/null
+++ b/cpp/arrays.cpp
@@ -0,0 +1,10 @@
+#include <iostream>
+using namespace std;
+
+int main() {
+ int numbers[] = {2,4,8,16};
+ for (int number : numbers) {
+ cout << number << endl;
+ }
+ return 0;
+} \ No newline at end of file