1. 程式人生 > >2003 求絕對值

2003 求絕對值

style ret include 絕對值 code span tdi ble pan

#include<cstdio>
#include<cmath>

int main() {
    double a;
    while (scanf_s("%lf", &a) != EOF) {
        printf("%.2f\n", abs(a));
    }
    return 0;
}

2003 求絕對值