PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Light Speed Calculator For Linux Bash

Go down

Light Speed Calculator For Linux Bash Empty Light Speed Calculator For Linux Bash

Post by jamied_uk 2nd November 2017, 15:23




Code


Code:
#!/bin/bash
# Usage:
# ./Run.sh
#
# jnet.forumotion.com/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."
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

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