Update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user