Skip to content

Curiliko/CityDistanceJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CityDistanceJS

This JavaScript program finds the distance between two 'cities' based on x- and y-coordinates inputted by a user for each 'city'. The program then displays the distance rounded down to the nearest whole number to the screen (distances are assumed to be in km).