Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
11
Task/Temperature-conversion/Ksh/temperature-conversion.ksh
Normal file
11
Task/Temperature-conversion/Ksh/temperature-conversion.ksh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/ksh
|
||||
# Temperature conversion
|
||||
set -A tt 0.00 273.15 373.15
|
||||
for t in "${tt[@]}"
|
||||
do
|
||||
echo
|
||||
echo "Kelvin: $t K"
|
||||
echo "Celsius: $((t-273.15)) C"
|
||||
echo "Fahrenheit: $((t*18/10-459.67)) F"
|
||||
echo "Rankine: $((t*18/10)) R"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue