비쥬얼 2022 프로그램 사용중입니다
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<math.h>
int main()
{
double x1, y1, x2, y2;
printf("input two points(x1,y1), (x2,y1)")
scanf("%lf %lf %lf %lf",
&x1, &y1, &x2, &y2);
double distance;
distance = sqrt((x2 - x1) * (x2 - x1) +
(y2 - y1) * (y2 - y1));
printf(" distance")
return 0;
}
단순 연산연습 해볼려 하는대
식이 안써지네요...
너무나도 c언어 초보인지라...
조언을 구해봅니다..