summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-07-08 10:57:17 -0600
committermo khan <mo.khan@gmail.com>2020-07-08 10:57:17 -0600
commit7db0131e2b51154a3064413923bdce7d39b4de1d (patch)
treef5a7fd9ebce6e0b431c6dccd21de062167f662fd
Programming club
-rw-r--r--README.md45
-rw-r--r--main.c14
2 files changed, 59 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..890c836
--- /dev/null
+++ b/README.md
@@ -0,0 +1,45 @@
+# Programming Club
+
+# What is programming?
+
+We write code to talk to our computers.
+We tell the computer what to do.
+
+1. write code in a language
+2. compile that code into a language that the computer understands
+3. give that program to the computer to run.
+
+
+Topics
+
+* variables
+
+
+
+* statements/expressions
+* looping
+
+
+
+"mo"
+
+ -------
+ | A |
+ -------
+ | 2 |
+ -------
+ | 3 |
+ -------
+ | 4 |
+ -------
+
+array
+
+['A', '2', '3', '4']
+
+
+Datatypes
+
+* numbers (int, float)
+* char -> character [A-Za-z]
+* array -> deck of (similar stuff card, number, char)
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..a18548d
--- /dev/null
+++ b/main.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ char name[3];
+
+ name[0] = 'm';
+ name[1] = 'o';
+ name[2] = '\0';
+
+ printf("%s", name);
+
+ return 0;
+}