Home > other >  Error code echo, no number sequences, expert guidance where is wrong?
Error code echo, no number sequences, expert guidance where is wrong?

Time:09-18

Error code echo, no number sequences, expert guidance where is wrong? Output without the Numbers: "order after arrangement is:,,"
The script is as follows:

#!/bin/bash
The read - p "do write a integer:" num1
The read - p "do write a integer:" num2
The read - p "do write a integer:" num3
TMP=0
If [$num1 - gt $num2]; Then
TMP=$num1
Num1=$num2
Num2=$TMP
Fi
If [$num1 - gt $num3]; Then
TMP=$num1
Num1=$num3
Num3=$TMP
Fi
If [$num2 - gt $num3]; Then
TMP=$num2
Num2=$num3
Num3=$TMP
Fi
Echo "order after arrangement is: $num1, $num2, $num3"



  • Related