Files
2025-05-11 00:54:05 +09:00

18 lines
232 B
C

#include <stdio.h>
int main(void) {
double x, y;
printf("Input floating point: ");
scanf("%lf", &x);
y = x;
if (y < 0.0)
y = -y;
printf("Absolute value of %lf is %lf.\n", x, y);
return 0;
}