Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
a92e324394
commit
6f53ba4546
@ -60,6 +60,8 @@ 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++){
|
||||||
@ -70,19 +72,23 @@ int main(){
|
|||||||
|
|
||||||
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{
|
||||||
|
|
||||||
|
if(j != i - 2){
|
||||||
|
|
||||||
vysl = x * vysl + mass[j + 1];
|
vysl = x * vysl + mass[j + 1];
|
||||||
|
|
||||||
//printf("%1.f\n", vysl);
|
//printf("vysl22>>>>> %1.f\n", vysl);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user