add ../examples/do_while.c
authoryu.dongliang <18588496441@163.com>
Thu, 8 Jun 2023 06:14:40 +0000 (14:14 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 8 Jun 2023 06:14:40 +0000 (14:14 +0800)
examples/do_while.c [new file with mode: 0644]

diff --git a/examples/do_while.c b/examples/do_while.c
new file mode 100644 (file)
index 0000000..c045445
--- /dev/null
@@ -0,0 +1,12 @@
+int printf(const char* fmt, ...);
+
+int main()
+{
+       int i = 0;
+
+       do {
+               printf("%d\n", i++);
+       } while (i < 10);
+
+       return 0;
+}