cara mengambil input dalam satu baris di c
rintf("Enter the coordinates of the second point (x1,y1): ");
scanf("%f%f",&coordinate2[0],&coordinate2[1]);
Brainy Booby
rintf("Enter the coordinates of the second point (x1,y1): ");
scanf("%f%f",&coordinate2[0],&coordinate2[1]);