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

Stats:

CreatedMay 14, 2020
PublishedMay 14, 2020
Warriors Trained5931
Total Skips121
Total Code Submissions13354
Total Times Completed3321
JavaScript Completions1176
Python Completions1309
Ruby Completions138
C# Completions336
C++ Completions346
C Completions100
CoffeeScript Completions7
Scala Completions21
Total Stars59
% of votes with a positive feedback rating88% of 524
Total "Very Satisfied" Votes419
Total "Somewhat Satisfied" Votes81
Total "Not Satisfied" Votes24
Total Rank Assessments61
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • sd8c8v8 Avatar
  • anter69 Avatar
  • hobovsky Avatar
  • ozichukwu Avatar
  • Кадам Avatar
  • kvbc Avatar
  • KOLLO Avatar
  • Just4FunCoder Avatar
  • KayleighWasTaken Avatar
  • saudiGuy Avatar
Ad