|
@ -6,7 +6,7 @@ |
|
|
|
|
|
|
|
|
int main() |
|
|
int main() |
|
|
{ |
|
|
{ |
|
|
double a,b,c,d,h,x1,s1,x2,x3,z1,z2,z3,p1,p2,p3,m; |
|
|
|
|
|
|
|
|
double a,b,c,d,h,x1,s1,x2,x3,z1,z2,z3,p1,p2,p3,m,x,y,z; |
|
|
a = getValue('a'); |
|
|
a = getValue('a'); |
|
|
b = getValue('b'); |
|
|
b = getValue('b'); |
|
|
h = getValue('h'); |
|
|
h = getValue('h'); |
|
@ -195,4 +195,10 @@ int main() |
|
|
p2 = getValue('P'); |
|
|
p2 = getValue('P'); |
|
|
p3 = getValue('P'); |
|
|
p3 = getValue('P'); |
|
|
vPunkt(x1,x2,x3,z1,z2,z3,p1,p2,p3); |
|
|
vPunkt(x1,x2,x3,z1,z2,z3,p1,p2,p3); |
|
|
|
|
|
|
|
|
|
|
|
printf("Enter the number of successful outcomes, total outcomes, and number of branches: "); |
|
|
|
|
|
x = getValue('S'); |
|
|
|
|
|
y = getValue('T'); |
|
|
|
|
|
z = getValue('B'); |
|
|
|
|
|
probability_from_tree(x, y, z); |
|
|
} |
|
|
} |