Math Operation

#include<stdio.h>
#include<math.h>
int main(){
    int x1 = 2, x2 = 3, y1 = 3, y2 = 4;
    float ans;
    
    ans = sqrt(pow((x1-x2),2)+pow((y1-y2),2));
    printf("%lf\n", ans);

    return 0;
}

Last updated