summaryrefslogtreecommitdiff
path: root/bio/1/loopstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'bio/1/loopstr.c')
-rw-r--r--bio/1/loopstr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bio/1/loopstr.c b/bio/1/loopstr.c
new file mode 100644
index 0000000..8319c19
--- /dev/null
+++ b/bio/1/loopstr.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char **argv) {
+ for (int i = 0; i < atoi(argv[1]); i++){
+ printf("%d ", i);
+ }
+ printf("\n");
+}