Beta
The average of two ASCII chars [code golf]
Description:
Your job in this kata is to find the average of two letters and output that said letter.
You will be given two letters (from ASCII printable characters). That is from ASCII value 32 to value 126.
You will find the average of these two letters, then print it out.
Your input will be letters and output will also be letters.
if the average is a decimal point value dont round it up so if value is 67.5 your output will be 67
** Note : max length for code is 30 (the tests only read BF instructions, so feel free to add comments and whitespaces to your code)
Dont ask for input more than twice
Example
given two letters A Z output will be M
this works like this : A has ASCII value 65 while Z has value 90. their average is 77.5
you will print out 77
This is my first kata so forgive me if something is wrong (if you can find issue i will do my best to fix it.)
Restricted
Puzzles
Games
Similar Kata:
Stats:
Created | Dec 12, 2020 |
Published | Dec 12, 2020 |
Warriors Trained | 58 |
Total Skips | 0 |
Total Code Submissions | 111 |
Total Times Completed | 17 |
BF Completions | 17 |
Total Stars | 4 |
% of votes with a positive feedback rating | 81% of 13 |
Total "Very Satisfied" Votes | 9 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 13 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 7 kyu |