linux之shell:数值运算:简单加减乘除
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
sh04.sh
#!/bin/bash
#program
# user inputs 2 integer numbers;program will cross these two numbers.
#History:
#2014/01/06 yusiyu First release
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo -e "you should input 2 numbers,i will cross them!\n "
read -p "first number: " firstnu
read -p "second number: " secnu
total=$(( $firstnu * $secnu ))
echo -e "\nthe result of $firstnu x $secnu is ==> $total"
#!/bin/bash
#program
# user inputs 2 integer numbers;program will cross these two numbers.
#History:
#2014/01/06 yusiyu First release
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo -e "you should input 2 numbers,i will cross them!\n "
read -p "first number: " firstnu
read -p "second number: " secnu
total=$(( $firstnu * $secnu ))
echo -e "\nthe result of $firstnu x $secnu is ==> $total"




A beautiful web dashboard for Linux
最近提交(Master分支:23 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)