Beecrowd URI Problem 1015 - Distance Between Two Points Solution in C Language

 There has a problem in beecrowd called Distance Between Two Points at the Beginner stage.

If you are a beginner coder then you will face Distance Between Two Points this problem in 1015 number problem in beecrowd beginner problem section.


beecrowd | 1015 Distance Between Two Points


Beecrowd All Problem Solutions List

Here i discuss the problem amd solution of uri problem 1015 - Distance Between Two Points.


this is the problem of url 1015 number in bigenner section. Below i provide my solution of this problem in C Language.


 // Author: Rayhan Hosen Refat

#include <stdio.h>

#include<math.h>

int main()

{

    double a,b,A,B,e,result;

    scanf("%lf %lf %lf %lf",&a, &b, &A, &B);

    e = pow((A - a),2) + pow((B - b) ,2);

    result = sqrt( e );

    printf("%.4lf\n",result);

    return 0;

}



GET SURE if you use this code your submission will be 100% accept.

Follow techpriyo.com for more problems solution.