array length fix

This commit is contained in:
Michal Utľák 2024-03-03 22:37:25 +01:00
parent 8a84024931
commit e870a23233

View File

@ -1,11 +1,11 @@
#include <stdio.h> #include <stdio.h>
int main() { int main() {
float pole[20]; float pole[50];
int opakovania = 0; int opakovania = 0;
float cislo; float cislo;
while (opakovania < 20) { while (opakovania < 50) {
if (scanf("%f", &cislo) == EOF) { if (scanf("%f", &cislo) == EOF) {
break; break;
} }