Code Visual Basic : Private Button1_Click(ByVal sender as System.Objet , Byval e As System.EventArgs) Dim Table () As String Dim LongMot as Long Dim MotPalinfdrome As String LongMot=Len(TextBox1.Text) ReDim Table(LongMot) If TextBox1.text="" Then MsgBox("Entrez Un Mot",MessageStyle.Critical) End if For i As Integer= 0 To LongMot-1 table(i)=mid(textbox1.text,(longmot-i),1) MotPalindrome=MotPalindrome & table(i) Next if MotPalindrome=TextBox1.text then Msgbox("Ce Mot est un Palindrome") else Msgbox("Ce Mot n'est un palindrome",MessageStyle.Critical) End if
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question