运行以下脚本,并依次输入1234,结果是#!/bin/bashmax=0for((count=1;count<=5;count=count+1))doecho"Enternumber$count:"readnumif[$num-gt$max]thenmax=$numfidoneecho"Max=$max" A: Max=1 B: Max=2 C: Max=3 D: Max=4
运行以下脚本,并依次输入1234,结果是#!/bin/bashmax=0for((count=1;count<=5;count=count+1))doecho"Enternumber$count:"readnumif[$num-gt$max]thenmax=$numfidoneecho"Max=$max" A: Max=1 B: Max=2 C: Max=3 D: Max=4
1