On a phone keypad, each of the digits 2 through 9 has a segment of the alphabet associated with it. How does one write a program that displays the associated numeric digit given an alphabetic character.
Tonderayi
0
Newbie Poster
Recommended Answers
Jump to PostYou could use a dictionary
Dim chardic As Dictionary(Of Char, Integer) Dim input As Char = "B"c Dim output As Integer = chardic(input)
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.