文章出處

 1 #!/bin/bash
 2 # Program
 3 #       User inputs 2 integer numbers:program will cross these two numbers.
 4 # History:
 5 # 2015/9/6      zengdp  First release
 6 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
 7 export PATH
 8 echo -e "You SHOULD input 2 numbers, I will cross then! \n"
 9 read -p "first number: " firstnu
10 read -p "second number: " secnu
11 total=$(($firstnu*secnu))
12 echo -e "\nThe result of $firstnu x $secnu is ==> $total"

 


文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜

    大師兄 發表在 痞客邦 留言(0) 人氣()