Skip to content

Dot32IsCool/italian-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Note

It has been pointed out that the correct translation for "write" is leggere, not legire, and I made a mistake when originally making this.

Italian numbers

this little program will test your knowlage of italian numbers

Screen Shot 2021-06-27 at 1 35 09 pm

translation:

Write 3 in italian:
tre
correct!
Write 33 in italian:
trentitre
not correct :(
it is trentatre

The technically impressive part of this project is the converting from an int into an "italian number", done by overloading Nims $ operator.

compile and run

  • download and install Nim; If on a unix operating system, use your respective package manager (brew install nim for MacOS)
  • download the project source
  • cd into the source folder and run nim c -r main.nim to compile and run

basics of counting in Italian

Counting to 10 in italian:
1: uno
2: due
3: tre
4: quattro
5: cinque
6: sei
7: sette
8: otto
9: nove
10: dieci

Similar to english, larger-than-ten numbers are prefixed with the name of the given ten. Eg, "twenty two" is the culmination of "two" and "twenty".

In Italian, the tens go as such:
20: venti
30: trenta
40: quaranta
50: cinquanta
60: sessanta
70: settanta
80: ottanta
90: novanta

For example, to write "Fifty Five" in italian, you would write cinquantacinque (no space seperates the digits)
There are however outliers from these; Numbers starting with a vowel (namely uno and otto), have their vowel replace the last letter of the ten.
Instead of 21 being ventiuno, it is ventuno.

Lastly, similarily to english, the "teens" are also outliers to the standard rules, however I wont list them here; You can see them for yourself if you download and run this program :3

Arrivedeci!

About

improve your knowledge of italian numbers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages