Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
f194279a0c
commit
cffb2547de
@ -13,9 +13,9 @@ int stop = 0;
|
|||||||
char mass[LINE_SIZE];
|
char mass[LINE_SIZE];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int x = 0;
|
int x = 0;
|
||||||
int vysl = 0;
|
float vysl = 0;
|
||||||
int counter = -1;
|
int counter = -1;
|
||||||
int h = 0;
|
float h = 0;
|
||||||
while(stop == 0){
|
while(stop == 0){
|
||||||
r = fgets(riadok,LINE_SIZE,stdin);
|
r = fgets(riadok,LINE_SIZE,stdin);
|
||||||
assert(r!=NULL);
|
assert(r!=NULL);
|
||||||
@ -36,7 +36,7 @@ h = mass[j];
|
|||||||
//printf("%d ", h);
|
//printf("%d ", h);
|
||||||
if(j != 0){
|
if(j != 0){
|
||||||
if(counter != 0){
|
if(counter != 0){
|
||||||
vysl += h * pow(x,counter);
|
vysl += h * powl(x,counter);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
vysl += h;
|
vysl += h;
|
||||||
|
Loading…
Reference in New Issue
Block a user