ASD
This commit is contained in:
parent
d4121fe34b
commit
0b6c52741c
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -1,21 +1,19 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int c, result;
|
||||
int result = 0;
|
||||
int value = 0;
|
||||
int vxod[999];
|
||||
int a = 0;
|
||||
//i`nt a = 0;
|
||||
for(int i = 0; i < 4; i++){
|
||||
c = scanf("%d",&value);;
|
||||
vxod[i] = c;
|
||||
a = i;
|
||||
scanf("%d",&value);;
|
||||
vxod[i] = value;
|
||||
//a = i;
|
||||
}
|
||||
//result = vxod[0];
|
||||
for(int i = 1; i < 4; i++){
|
||||
result = vxod[0] * result + vxod[i];
|
||||
}
|
||||
value = 0;
|
||||
result = vxod[0];
|
||||
do{
|
||||
result = result * vxod[value] + 1;
|
||||
value++;
|
||||
}while(value < a);
|
||||
printf("%d\n", result);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user