" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
using namespace std;
int main()
{
int kwota;
cin >> kwota;
string napis;
while (kwota > 0)
{
int n = kwota % 10;
switch (n)
{
case 1:
napis = "jed" + napis;
break;
case 2:
napis = "dwa" + napis;
break;
case 3:
napis = "trz" + napis;
break;
case 4:
napis = "czt" + napis;
break;
case 5:
napis = "pie" + napis;
break;
case 6:
napis = "sze" + napis;
break;
case 7:
napis = "sie" + napis;
break;
case 8:
napis = "osi" + napis;
break;
case 9:
napis = "dzi" + napis;
break;
case 0:
napis = "zer" + napis;
break;
}
kwota /= 10;
}
cout << napis;
return 0;
}