Light Speed Calculator For Linux Bash

View previous topic View next topic Go down

Light Speed Calculator For Linux Bash

Post by jamied_uk on 2nd November 2017, 15:23




Code


Code:
#!/bin/bash
# Usage:
# ./Run.sh
#
# jnet.forumn.biz/t1566-light-speed-calculator-for-linux-bash#2383
#
# shell-tips.com/2010/06/14/performing-math-calculation-in-bash
#
# tldp.org/LDP/Bash-Beginners-Guide/html/sect_08_02.html
#
echo "Light Speed Calculator"
echo "1 Light Year = 5.8 Trillion Miles"
echo "Enter Light Years To Calculate"
read in1
echo "You Chose $in1 Light Years & The Answer Is"
#
echo "$in1 * 5.8 Trillion Miles, Which Is:"
echo ""
#
echo "($in1 * 5.8)" | bc
#echo "$output"
echo "Trillion Miles."
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum