• 2022-06-15 问题

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

  • 1