c加加編程 C加加編寫程序,輸入三個字母abc,實(shí)現(xiàn)輸出為cba?
C加加編寫程序,輸入三個字母abc,實(shí)現(xiàn)輸出為cba?If嵌If嵌If套If窗體上添加4個本框1個鈕,Text1、Text2?Text3輸,Text4輸Private Sub Command1?Cl
C加加編寫程序,輸入三個字母abc,實(shí)現(xiàn)輸出為cba?
If嵌If嵌If套If窗體上添加4個本框1個鈕,Text1、Text2?Text3輸,Text4輸Private Sub Command1?Click()Dim a As Integer Dim b As Integer Dim c As Integer a=Val(Text1.Text)b=Val(Text2.Text)c=Val(Text3.Text)If a> b Then If b> c Then Text4.Text=a& “”&&“”&c Else Text4.Text=a&”&c&”&b End If Else Text4.Text=c&”&a&“&b End If Else If b> c Then If a> c Then Text4.Text=b&”&a&“&c Else Text4.Text=b&”&c&“&a End If Else Text4.Text=c&”&b&“&a End If Else Text4.Text=c&”&b&“&a EndIf End If End接頭