fix
This commit is contained in:
parent
08d40d2f1e
commit
15e9473880
@ -4,19 +4,19 @@
|
|||||||
long double power(long double x, int y);
|
long double power(long double x, int y);
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
double x;
|
float x;
|
||||||
double coef[100];
|
float coef[100];
|
||||||
int coefCount = 0;
|
int coefCount = 0;
|
||||||
int retVal;
|
int retVal;
|
||||||
long double result = 0;
|
long double result = 0;
|
||||||
|
|
||||||
if ((retVal = scanf("%lf", &x)) <= 0 || retVal == EOF) {
|
if ((retVal = scanf("%f", &x)) <= 0 || retVal == EOF) {
|
||||||
printf("%s\n", "Chyba: Nespravny vstup");
|
printf("%s\n", "Chyba: Nespravny vstup");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<100; i++) {
|
for (int i=0; i<100; i++) {
|
||||||
retVal = scanf("%lf", &coef[coefCount]);
|
retVal = scanf("%f", &coef[coefCount]);
|
||||||
|
|
||||||
if (coef[i] == 0) {
|
if (coef[i] == 0) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user