Aktualizovat du2/program.c
This commit is contained in:
parent
29ab2de636
commit
86aa3d309e
@ -2,13 +2,13 @@
|
||||
|
||||
|
||||
int main(){
|
||||
int koef=0;
|
||||
double koef=0;
|
||||
double a;
|
||||
double rishennia;
|
||||
if (scanf("%lf",&a) != 1) {
|
||||
printf("Chyba\n");
|
||||
return 1;
|
||||
}else{ while (scanf("%d", &koef) == 1) {
|
||||
}else{ while (scanf("%lf", &koef) == 1) {
|
||||
rishennia=rishennia*a +koef;
|
||||
}
|
||||
printf("Vysledok je: %.2f\n",rishennia);
|
||||
|
Loading…
Reference in New Issue
Block a user