Created
March 21, 2024 16:21
-
-
Save encukou/26778d5a3347d3fefe7ffb7ee0d303cd to your computer and use it in GitHub Desktop.
nazev_jednoducheho_cisla.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vraci staticky retezec, nevolat free() | |
char *nazev_jednoducheho_cisla(int n) { | |
switch (n) { | |
case 0: return "nula"; | |
case 1: return "jedna"; | |
case 2: return "dva"; | |
case 3: return "tri"; | |
case 4: return "ctyri"; | |
case 5: return "pet"; | |
case 6: return "sest"; | |
case 7: return "sedm"; | |
case 8: return "osm"; | |
case 9: return "devet"; | |
case 10: return "deset"; | |
case 11: return "jedenact"; | |
case 12: return "dvanact"; | |
case 13: return "trinact"; | |
case 14: return "ctrnact"; | |
case 15: return "patnact"; | |
case 16: return "sestnact"; | |
case 17: return "sedmnact"; | |
case 18: return "osmnact"; | |
case 19: return "devatenact"; | |
case 20: return "dvacet"; | |
case 30: return "tricet"; | |
case 40: return "ctyricet"; | |
case 50: return "padesat"; | |
case 60: return "sedesat"; | |
case 70: return "sedmdesat"; | |
case 80: return "osmdesat"; | |
case 90: return "devadesat"; | |
default: return "nevim dal"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment