गिनती के डेनिश तरीके का उपयोग करके सही क्रम में 0-100 से सभी नंबरों को प्रिंट करें
उनकी गिनती कैसे होती है
- अंग्रेजी की तरह, उनके पास 0-20, 30, 40 और 100 के लिए समर्पित शब्द हैं
- कहने के बजाय
twenty-one
औरtwenty-two
, वे कहते हैंone and twenty
औरtwo and twenty
पचास से शुरू होकर वे कहते हैं कि 10 का गुणनफल n * 20 है
50 = half third times twenty = half way to the 3rd multiple of 20 60 = three times twenty 70 = half fourth times twenty 80 = four times twenty 90 = half fifth times twenty
उदाहरण के लिए, 55 होगा
five and half third times twenty
।
अपेक्षित उत्पादन
zero
one
two
three
four
five
six
seven
eight
nine
ten
eleven
twelve
thirteen
fourteen
fifteen
sixteen
seventeen
eighteen
nineteen
twenty
one and twenty
two and twenty
three and twenty
four and twenty
five and twenty
six and twenty
seven and twenty
eight and twenty
nine and twenty
thirty
one and thirty
two and thirty
three and thirty
four and thirty
five and thirty
six and thirty
seven and thirty
eight and thirty
nine and thirty
forty
one and forty
two and forty
three and forty
four and forty
five and forty
six and forty
seven and forty
eight and forty
nine and forty
half third times twenty
one and half third times twenty
two and half third times twenty
three and half third times twenty
four and half third times twenty
five and half third times twenty
six and half third times twenty
seven and half third times twenty
eight and half third times twenty
nine and half third times twenty
three times twenty
one and three times twenty
two and three times twenty
three and three times twenty
four and three times twenty
five and three times twenty
six and three times twenty
seven and three times twenty
eight and three times twenty
nine and three times twenty
half fourth times twenty
one and half fourth times twenty
two and half fourth times twenty
three and half fourth times twenty
four and half fourth times twenty
five and half fourth times twenty
six and half fourth times twenty
seven and half fourth times twenty
eight and half fourth times twenty
nine and half fourth times twenty
four times twenty
one and four times twenty
two and four times twenty
three and four times twenty
four and four times twenty
five and four times twenty
six and four times twenty
seven and four times twenty
eight and four times twenty
nine and four times twenty
half fifth times twenty
one and half fifth times twenty
two and half fifth times twenty
three and half fifth times twenty
four and half fifth times twenty
five and half fifth times twenty
six and half fifth times twenty
seven and half fifth times twenty
eight and half fifth times twenty
nine and half fifth times twenty
one hundred
नियम
- आप संख्याओं को अलग करने के लिए किसी विभाजक का उपयोग कर सकते हैं
- मूल विनिर्देश में एक टाइपो के कारण, आप
forth
इसके बजाय उपयोग कर सकते हैंfourth
। - आप एक फ़ंक्शन लिख सकते हैं या std-out लिख सकते हैं
- मानक खामियां लागू होती हैं
- यह कोडगोल्फ है; बाइट्स में सबसे छोटा कोड जीत!