Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
a92e324394
commit
6f53ba4546
@ -60,29 +60,35 @@ int main(){
|
|||||||
|
|
||||||
x = mass[0];
|
x = mass[0];
|
||||||
|
|
||||||
|
vysl = x;
|
||||||
|
|
||||||
//printf("%d\n", x);
|
//printf("%d\n", x);
|
||||||
|
|
||||||
for(int j = 1; j < i - 1; j++){
|
for(int j = 1; j < i - 1; j++){
|
||||||
|
|
||||||
h = mass[j];
|
h = mass[j];
|
||||||
|
|
||||||
//printf("h>>>%1.f\n", h);
|
//printf("h>>> %1.f\n", h);
|
||||||
|
|
||||||
if(counter == -1){
|
if(counter == -1){
|
||||||
|
|
||||||
vysl = x * h;
|
vysl = x * h + mass[j + 1];
|
||||||
|
|
||||||
|
//printf("vysl>>> %1.f\n", vysl);
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
|
|
||||||
//printf("prv>>%1.f\n", vysl);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(j != i){
|
else{
|
||||||
|
|
||||||
vysl = x * vysl + mass[j + 1];
|
if(j != i - 2){
|
||||||
|
|
||||||
//printf("%1.f\n", vysl);
|
vysl = x * vysl + mass[j + 1];
|
||||||
|
|
||||||
|
//printf("vysl22>>>>> %1.f\n", vysl);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user