Hello,

1st. vb class. having trouble with assign. seems to round up. any suggestions would be greatly appreciated


Console.Write("Enter five digits: ")
number = Console.ReadLine()
num5 = (number Mod 10) 'get num5
number = (number / 10) 'get four digits
num4 = (number Mod 10) 'get num4
number = (number / 10) 'get 3 digits
num3 = (number Mod 10) 'get num3
number = (number / 10) 'get 2 digits
num2 = (number Mod 10) 'get num2
num1 = (number / 10) 'get num1


'Check for Palindrome

If num1 = num5 Then

While num2 = num4


Console.Write(vbCrLf & "Palindrome!")
End While

Else
Console.Write(vbCrLf & "Not a Palindrome")
End If