Read and save
Set n1=mid_value
IF
Set n2=mid_value
ELSE IF (n2>n1 AND n2>n3) OR (n2
END IF
Else IF num<0 Then
Print "the number is negative"
Else IF num=0 Then
Print "the number has no sign"
End If
Get3 integersinteger fromtheuser
Read and savethe integersinteger asn1,n2,n3num
Set n1=mid_value
IF(n1num>0 Thenn2 AND n1>n3) THEN
Set n2=mid_value
ELSE IF (n2>n1 AND n2>n3) OR (n2Set n3=mid_value
END IF
("the middle value"the number is____", mid_value)positive"
Else IF num<0 Then
Print "the number is negative"
Else IF num=0 Then
Print "the number has no sign"
End If
Title | Name | Language | UNIX | When |
---|---|---|---|---|
Re: Re: Re: Untitled | Khalil Khawaja | text | 1614685301 | 4 Years ago. |