Code:i am not very knowledgeable on structures. i want to input x1,y1 of one point and x2,y2 of other and get the distance. this is my code but i am getting error. #include <stdio.h> #include <math.h> struct position{ double latitude; double longitude; }; void main() { double distance; struct position p1,p2; scanf( "%lf, %lf", p1, p2); distance = sqrt( (p1.latitude * p1.longitude) + (p2.latitude * p2.longitude)); printf(" %lf", distance); }