首页
›
答案
›
题库
›
慕课
›
未分类
num1=100num2=100if test $[num1] -eq $[num2]thenecho '两个数相等!'elseecho '两个数不相等!'fi输出结果:两个数相等!
num1=100num2=100if test $[num1] -eq $[num2]thenecho '两个数相等!'elseecho '两个数不相等!'fi输出结果:两个数相等!
A.正确
B.错误
正确答案:正确
标签:
Linux操作系统基础
个数
上一条:
顺序输出字符串中的字符:for str in 'This is a string'doecho $strdone输出结果:This is a string
下一条:
;!/bin/bashint=1while(( $int=5 ))doecho $intlet int++done运行脚本,输出:12345