Delete 'cv3/ program.c'
This commit is contained in:
parent
6da8102234
commit
1751d8205b
@ -1,25 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
float x;
|
|
||||||
float coefficient;
|
|
||||||
float result = 0;
|
|
||||||
int exponent = 0;
|
|
||||||
|
|
||||||
|
|
||||||
if (scanf("%f", &x) != 1) {
|
|
||||||
printf("Chyba\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
while (scanf("%f", &coefficient) == 1) {
|
|
||||||
result += coefficient * pow(x, exponent);
|
|
||||||
exponent++;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
printf("Vysledok je: %.2f\n", result);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user