Hello! I now have my job for the admissions test, which is a fairly easy task, but because it was so long since I did this every now it complicated, and need some help!
The task reads like this:
Create a draft of a code that meets the requirements below. Your draft should be a maximum of 50 lines of code with the structure and readability. Note that your text will not be executable, it should contain only the most pithy of the solution. Your draft is provided with any programming language or pseudo code.
- Create a program that prints out all numbers from 1000 and down to 1.
- Each number must be on a separate line.
- For centuries in 1000 (900), 800, 700, etc. ..), the words "hundred" printed after the figure.
- The number 123 is the text "on the fourth is to be 'printed after the figure.
I was going to write this in PHP.
Would be good if I could get answers on this, Regards Jesper.
The task reads like this:
Create a draft of a code that meets the requirements below. Your draft should be a maximum of 50 lines of code with the structure and readability. Note that your text will not be executable, it should contain only the most pithy of the solution. Your draft is provided with any programming language or pseudo code.
- Create a program that prints out all numbers from 1000 and down to 1.
- Each number must be on a separate line.
- For centuries in 1000 (900), 800, 700, etc. ..), the words "hundred" printed after the figure.
- The number 123 is the text "on the fourth is to be 'printed after the figure.
I was going to write this in PHP.
Would be good if I could get answers on this, Regards Jesper.