summaryrefslogtreecommitdiff
path: root/5p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to '5p1.cpp')
-rw-r--r--5p1.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/5p1.cpp b/5p1.cpp
new file mode 100644
index 0000000..bc7c0ed
--- /dev/null
+++ b/5p1.cpp
@@ -0,0 +1,18 @@
+#include <iostream>
+
+/*
+ *
+ * 5.1
+ *
+ *
+ */
+
+int main () {
+
+ // A null statement is just a semicolon ;
+ // For example, we can use it for a while loop (while loops require a statement) if the condition can do all the work in the loop.
+ int i = 0;
+ while (i++ != 10)
+ ;
+ return 0;
+}