25 lines
474 B
C
25 lines
474 B
C
|
//
|
||
|
// 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;
|
||
|
}
|