题解 2765: 计算分数的浮点数值

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2765: 计算分数的浮点数值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double a,b;    cin>>a>>b; ……

2765: 计算分数的浮点数值

摘要:解题思路:注意事项:不要定义成整数参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    double a……

计算分数的浮点数值

摘要:解题思路:计算分数的浮点数值注意事项:b!=0参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    if(b……

模仿范例改的

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    double a,b;    if(~scanf("%lf %lf", &a, &b))       i……

计算分数的浮点数值

摘要:解题思路:注意事项:a,b记得用double参考代码:#include<stdio.h>int main(){    double a,b;    scanf("%lf%lf",&a,&b);    ……