Friday, 12 December 2014

Shell Script for Celsius to Fahrenheit conversion

Write a Shell Script for Celsius to Fahrenheit conversion

Solution:
echo Enter Temperature in Celsius
read c
c=`echo $c \* 9 | bc`
c=`echo $c / 5 | bc`
c=`echo $c + 32 | bc`
echo Hence Temperature in Fahrenheit : $c

Execution:


No comments:

Post a Comment