#include <stdio.h>
int main (void)
{
double num1, num2, hv;
printf ("请输入两个浮点数:");
while (2 != scanf("%lf %lf",&num1,&num2))
{
printf ("请输入两个浮点数:");
}
hv = (num1 > num2)?(num1 - num2):(num2 - num1)/(num1 * num2);
printf ("%lf",hv);
system ("pause");
return 0;
}
Rober_Lin
诗雨若枫
相关分类