#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;}
- 2 回答
- 0 关注
- 1726 浏览
添加回答
举报
0/150
提交
取消