7 kyu
Turkish Numbers, 0-99
1,176 of 3,321sd8c8v8
Description:
Your Task
Complete the function to convert an integer into a string of the Turkish name.
- input will always be an integer 0-99;
- output should always be lower case.
Background
Forming the Turkish names for the numbers 0-99 is very straightforward:
- units (0-9) and tens (10, 20, 30, etc.) each have their own unique name;
- all other numbers are simply [tens] + [unit], like twenty one in English.
Unlike English, Turkish does not have "teen"-suffixed numbers; e.g. 13 would be directly translated as "ten three" rather than "thirteen" in English.
Turkish names of units and tens are as follows:
0 = sıfır
1 = bir
2 = iki
3 = üç
4 = dört
5 = beş
6 = altı
7 = yedi
8 = sekiz
9 = dokuz
10 = on
20 = yirmi
30 = otuz
40 = kırk
50 = elli
60 = altmış
70 = yetmiş
80 = seksen
90 = doksan
Examples
1 --> "bir"
13 --> "on üç"
27 --> "yirmi yedi"
38 --> "otuz sekiz"
77 --> "yetmiş yedi"
94 --> "doksan dört"
Good luck, or iyi şanslar :)
Fundamentals
Similar Kata:
Stats:
Created | May 14, 2020 |
Published | May 14, 2020 |
Warriors Trained | 5931 |
Total Skips | 121 |
Total Code Submissions | 13354 |
Total Times Completed | 3321 |
JavaScript Completions | 1176 |
Python Completions | 1309 |
Ruby Completions | 138 |
C# Completions | 336 |
C++ Completions | 346 |
C Completions | 100 |
CoffeeScript Completions | 7 |
Scala Completions | 21 |
Total Stars | 59 |
% of votes with a positive feedback rating | 88% of 524 |
Total "Very Satisfied" Votes | 419 |
Total "Somewhat Satisfied" Votes | 81 |
Total "Not Satisfied" Votes | 24 |
Total Rank Assessments | 61 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |