Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include<math.h>
- int main()
- {
- double x1,x2,y1,y2,d;
- int t,i;
- scanf("%d",&t);
- for(i=1;i<=t;i++)
- {
- scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);
- d= sqrt(pow(x2-x1,2)+pow(y2-y1,2));
- printf("Case %d: %.4lf\n",i,d);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement