This commit is contained in:
2024-02-12 14:35:40 +01:00
parent d2688932ab
commit d750a8b19c
9 changed files with 102 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
//
// Created by bruno on 2/5/24.
//
#include "hviezdicky.h"
#include "stdio.h"
int stars() {
int j; //stĺpec
int i; //riadok
int a; //počet riadkov
int b; //počet stĺpcov
printf("Zadaj počet riadkov:");
scanf("%d", &a);
printf("Zadaj počet stĺpcov:");
scanf("%d", &b);
putchar('\n');
for (i = 0; i < a; i++) {
for (j = 0; j < b; j++) {
putchar('*');
}
putchar('\n');
}
return 0;
}