Skip to content

Mahdi-Code630/least-distance-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Least Distance Calculator

This is a simple Python program to calculate the least distance covering 3 people on a line.

How It Works

  • The program asks the user to enter 3 numbers (representing positions of people on a line).
  • It calculates the distance between the farthest two positions.
  • The result is printed as the least distance.

Example

$ python least_distance.py
What's your number 1? 2
What's your number 2? 5
What's your number 3? 9
The least distance is: 

## Requirements
Python 3.x

Run

Clone the repository and run the script
git clone https://github.com/your-username/least-distance-calculator.git
cd least-distance-calculator
python least_distance.py

About

A simple Python program to calculate the least distance of 3 people on a line.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages