소 감 ¶
코 드 ¶
package main
import "fmt"
func main(){
var a,b,c int
var temp int
fmt.Scanf("%d %d %d",&a,&b,&c)
if a ==-999 {
fmt.Println("End")
return
}
fmt.Printf("A = %d B = %d C = %d\n",a,b,c)
if a >= b{
temp = b
b = a
a = temp
}
if b >= c {
temp = c
c = b
b = temp
}
if a >= c {
temp = a
a = c
c = temp
}
fmt.Printf("middlenum = %d",b)
}










