--[[Write a program to store the meters in a variable and convert in to kilometers--]] m = io.read('*n') km = m/1000 print(m, 'meters =', km, 'kilometers')
To embed this project on your website, copy the following code and paste it into your website's HTML: