additional files

This commit is contained in:
2026-09-24 23:39:27 +02:00
parent 230f38ebf5
commit ef697ff03c
6 changed files with 145 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
//Made by Vlad. Budnitski.
//AlphaTech - Programming Course.
#include <stdio.h>
#include <math.h>
int main()
{
float x1, y1, x2, y2;
float distance;
printf("Enter X1: ");
scanf("%f", &x1);
printf("Enter Yl: ");
scanf("%f", &y1);
printf("Enter X2: ");
scanf("%f", &x2);
printf("Enter Y2: ");
scanf("%f", &y2);
distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
printf("The distance between the points (%.2f, %.2f) and (%.2f, %.2f) is %.2f\n", x1, y1, x2, y2, distance);
return 0;
}