I'm trying to write a small program to loop through a list of words and find the numeric order of the letters in the string, e.g. HELLO will return 21345 (I don't want to double up numbers) and PROSPER will be 3527416.
I'm having trouble thinking of a way I can do this. Any ideas? I imagine I'll have to use the ord() function, but that's about as far as I've gotten.
matmunn14
0
Newbie Poster
Recommended Answers
Jump to PostIt looks very much like homework. Start with a program to print the letters of each word in alphabetic order.
All 5 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
matmunn14
0
Newbie Poster
matmunn14
0
Newbie Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
matmunn14
0
Newbie Poster
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.