Weekly challenge #4
Hello again fellow replers! Last week, we announced the third weekly challenge and you can check it out by clicking here.
The results can wait but the next challenge most probably cannot, so here we go!
Number of letters in numbers!
So, for this week's challenge, you are going to have to do the following:
Take a numerical input from the user ( natural numbers only ( > 0 ) )
Convert it intro words (string). For example:
two hundred and thirty-four
Count the number of alphabets in the string (only alphabets, ignore all spaces and hyphens). For example:
two hundred and thirty-four=> 23
Print the result (in readable/understandable format). A sample desired run is shown below.
NOTE : You can change the prompt and outputted messages but there should be some understandable prompts/messages.
ALSO, sticking to the theme of keeping these beginner friendly, no external libraries allowed. Do it the old (lots of if statements) way!
Moreover, the numbers that will be entered while testing will always be less than 1 million.
AGAIN, for submitting, post your repl on the repl talk share board and be sure to have
#WEEKLY in your post's title.
And that's it for this week! Have fun!
WEEKLY 3 RESULTS
For the third weekly challenges, we received very few submissions, after scoring which, the following is the leaderboard!
RANK 1 : @CodingCactus with a score of 23 points!
RANK 2 : @Lord_Poseidon with a score of 22 points!
RANK 3 : @Scoder12 with a score of 17 points!
This is the last of the weekly challenges. At the end of this weekly challenge, whoever has the highest overall score, wins the 1 month of free hacker plan! Good luck to everyone! And remember, even if you cannot win the hacker plan, you can still solve this to increase your coding knowledge and/or just for fun!
lol i didnt participate in the last one because my brain is to slow for it, it might explode if I did it