Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <queue>
- #include <math.h>
- #include <random>
- using namespace std;
- int main () {
- double x1, y1 , a , b , c , r;
- cin>>x1>>y1>>a>>b>>c;
- r = (abs(a*x1+b*y1+c))/sqrt(a*a+b*b);
- cout<< r << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement