Header Ads

Learn Together, Stay Connected.

দুইটি বিন্দুর দূরত্ব-C


#include <stdio.h>
#include<math.h>
int main()
{
    int x,y,p,q;

    double m;

    scanf("%d %d %d %d",&x,&y,&p,&q);

    m=(double)sqrt((p-x)*(p-x)+(y-q)*(y-q));

    printf("Distance between two point = %lf\n",m);

    return 0;
}

No comments

Theme images by Dizzo. Powered by Blogger.