You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
422 B

  1. /*
  2. * Laenge einer Strecke im Raum
  3. *
  4. * Rainer Hihn
  5. */
  6. #include "strecke.h"
  7. int main(void)
  8. {
  9. /**
  10. * Variablendeklaration
  11. */
  12. struct point firstPoint;
  13. struct point secondPoint;
  14. printf("Entfernung berechnen \n");
  15. firstPoint = readPoint();
  16. secondPoint = readPoint();
  17. printf("Die Entfernung von Punkt 1 nach Punkt 2 ist: %f \n", distance(firstPoint, secondPoint));
  18. return 0;
  19. }