摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1170这题麻烦在于每次输入之后的接收回车,还有对结果是否是整数的判断,The result should be rounded to 2 decimal places If and only if it is not an integer.View Code #include<stdio.h>#include<conio.h>int main(){ int a,b,t,ans1; double ans2; char c,s[20]; scanf("%d",& 阅读全文