Enter 1 (or any number aside from 2) if you want to run the Distance Between Two Points Program, or 2 is you don't!
1
Welcome To The Distance Between Two Points Program!
Please one by one enter the two coordinates
Please enter X₁ in (X₁,Y₁)
0
Great! Please enter Y₁
0
Great! Please enter X₂
3
Great! Finally, please enter Y₂
4
The midpoint of these two points is (1.5, 2.0)
The distance between these two points is 5.0 or exactly: √25.0
//Have checked rational, now irrational
Do you want to run again? Please press 1 if yes, and 2 if No.
1
Welcome To The Distance Between Two Points Program!
Please one by one enter the two coordinates
Please enter X₁ in (X₁,Y₁)
1
Great! Please enter Y₁
1
Great! Please enter X₂
6
Great! Finally, please enter Y₂
3
The distance between these two points is 5.3851647 or exactly: √29.0
The midpoint of these two points is (3.5, 2.0)
//It works for both rational AND irrational!
Do you want to run again? Please press 1 if yes, and 2 if No.
2
Thank you for checking out the Distance Between Two Points Program! Press enter to exit the console.