Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- double reverse(const double a, const double b) {
- double ret = sqrt(a) - sqrt(b);
- return ret * ret;
- }
- int main(void) {
- printf("%lf\n", reverse(1., 2.));
- printf("%lf\n", reverse(2., 3.));
- printf("%lf\n", reverse(3., 4.));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement