add_for_loop

This commit is contained in:
2023-12-18 15:36:37 +01:00
parent ffaea1ef93
commit 125e6c9af3
5 changed files with 41 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
//
// Created by bruno on 12/18/23.
//
#include "for.h"
#include "stdio.h"
int for_cyklus(){
int target;
printf("Do akého čísla počítať?");
scanf("%d", &target);
for(int i = 1; i <= target; i++){
printf("%d\n", i);
}
}