summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/bungus.c5
-rw-r--r--c/playlist.c38
-rw-r--r--c/print.c8
3 files changed, 51 insertions, 0 deletions
diff --git a/c/bungus.c b/c/bungus.c
new file mode 100644
index 0000000..0a06373
--- /dev/null
+++ b/c/bungus.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+
+int main() {
+ printf("boner\n");
+} \ No newline at end of file
diff --git a/c/playlist.c b/c/playlist.c
new file mode 100644
index 0000000..17fac70
--- /dev/null
+++ b/c/playlist.c
@@ -0,0 +1,38 @@
+#include <stdio.h>
+#include <stdbool.h>
+
+int main() {
+ bool running = true;
+
+ while (running) {
+ // Print menu options
+ printf("Welcome to the text-based menu!\n");
+ printf("1. Option 1\n");
+ printf("2. Option 2\n");
+ printf("3. Option 3\n");
+ printf("4. Exit\n");
+
+ // Get user input
+ int option;
+ scanf("%d", &option);
+
+ // Handle user input
+ switch (option) {
+ case 1:
+ printf("You chose option 1!\n");
+ break;
+ case 2:
+ printf("You chose option 2!\n");
+ break;
+ case 3:
+ printf("You chose option 3!\n");
+ break;
+ case 4:
+ running = false;
+ printf("You chose to exit the menu.\n");
+ break;
+ default:
+ printf("Invalid input. Please try again.\n");
+ }
+ }
+} \ No newline at end of file
diff --git a/c/print.c b/c/print.c
new file mode 100644
index 0000000..880d65d
--- /dev/null
+++ b/c/print.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main() {
+ for (int i = 0; i < 10; i++) {
+ printf("poopy\n");
+ }
+ return 0;
+}