
CodePudding user response:
The code is as follows:#!/bin/bash#
Echo - e "please enter A number to open, read" AL=$A
W=$A/$L
If [$L - le $0] then
Echo "input error" exit 1
The else
While ($L $W) & gt;=0. 00001 do
L=($$W + L)/2 W=$A/$Ldone
Fi
Echo $L
CodePudding user response:
The code is as follows: