You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Implement a program to read two input each representing the distances between two points in the Euclidean space, store these in structure variables and add the two distance values.
#include <stdio.h>
#include <math.h>
struct euclid
{
int x;
int y;
} e1, e2;
void main()
{
int a, b;
float dist;
printf("Enter the X and Y coordinates of Point 1 ");
scanf("%d %d", &e1.x,&e1.y);
printf("Enter the X and Y coordinates of Point 1 ");