#include <stdio.h>
int main()
{
float x1, y1, x2, y2, a, b, x, y;
printf("请输入第一组测量温度和相应的实际温度数据:\n");
scanf("%f%f", &x1, &y1);
printf("请输入第二组测量温度和相应的实际温度数据:\n");
scanf("%f%f", &x2, &y2);
a = (y2 - y1) / (x2 - x1);
b = y1 - a * x1;
printf("请输入需要校准的温度值:\n");
scanf("%f", &x);
y = a * x + b;
printf("校准后的温度值为:%f\n", y);
return 0;
}