BUPT-homework/semester1/pset1/3-math.c

13 lines
200 B
C
Raw Permalink Normal View History

2021-09-23 16:18:59 +08:00
#include <stdio.h>
int main(void) {
// initialization
double a, b, c, d;
scanf("%lf %lf %lf %lf", &a, &b, &c, &d);
// print answer
printf("%lf", (a + b) * (a - b) + c / d);
return 0;
}