求两个浮点数的和
#include <bits/stdc++.h> using namespace std; double add(double x, double y) { return x + y; } int main() { double x, y; scanf("%lf %lf", &x, &y); printf("%.2lf\n", add(x, y)); return 0; }