Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- main()
- {
- float x1,x2,y1,y2,x,y,d;
- printf("Upisite kordinate prve tocke: ");
- scanf("%f,%f",&x1,&y1);
- printf("\nUpisite kordinate druge tocke: ");
- scanf("%f,%f",&x2,&y2);
- x = x2-x1;
- y = y2-y1;
- d = sqrt(pow(x,2)+pow(y,2));
- printf("\nTocke su medusobno udaljene %f",d);
- scanf("%d");
- return 0;
- }
Add Comment
Please, Sign In to add comment