I have been searching for a few days and I have found only one solution that didn't look perfect to me. Our teacher asked us to create a function that would calculate total lenght of distances in between points provided by user. My idea was to write code this way, using an array of specific type.I have been searching for a few days and I have