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