#include <stdio.h>
#include <math.h>
int main()
{
int i;
float a, b, c, h[2], k[2], l[2], m, n, y;
printf("a = ");
scanf("%f", &a);
printf("b = ");
scanf("%f", &b);
printf("c = ");
scanf("%f", &c);
for(i = 0; i < 2; i++)
{
printf("h[%d] = ", i);
scanf("%f", &h[i]);
}
for(i = 0; i < 2; i++)
{
printf("k[%d] = ", i);
scanf("%f", &k[i]);
}
for(i = 0; i < 2; i++)
{
printf("l[%d] = ", i);
scanf("%f", &l[i]);
}
m = h[0] * h[1] / (a * a) + k[0] * k[1] / (b * b) + l[0] * l[1] / (c * c);
n = sqrt((h[0] * h[0] / (a * a) + k[0] * k[0] / (b * b) + l[0] * l[0] /
(c * c)) * (h[1] * h[1] / (a * a) + k[1] * k[1] / (b * b) + l[1] * l[1] / (c * c)));
y = m / n;
printf("cosx=%f\n",y);
return 0;
}