Skip to content

stamby/cm-to-ft-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cm-to-ft-in

Three small programs, which convert centimetres to feet and inches.

Given the same number, the three scripts will print the same result with up-to-one-decimal precision. They are written in different languages.

# Decimal numbers are accepted
Usage: ./cm-to-ft-in.sh CM
       ./cm-to-ft-in.py CM

# To use the C-based script
cd C
make
./cm-to-ft-in CM