diff --git a/temperature.sh b/temperature.sh new file mode 100644 index 0000000..ed3259a --- /dev/null +++ b/temperature.sh @@ -0,0 +1,7 @@ +temp=$1 +var=`echo "$temp-32"|bc` +mult=`echo "scale=4; 5/9"|bc` +ans=`echo "$var*$mult"|bc` +echo "$temp F = $ans C" +ans2=`echo "$ans+273.15"|bc` +echo "$temp F = $ans2 K"