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"

 

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-06-16
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
相关资源
相似解决方案