... thanks for your ironic or should i say phatetic code rly
First of all. You never even tried to answer my first questions, which were in fact a well meant attempt to
help you solve this problem.
Second: my posted code does the job perfectly well, and it does that for very large numbers (for which most programming languages do not have a native type).
You might have learnt from studying the code that the essence of the program was:
- Make a function that extracts all digits from a given number
- Make a function that divides a given number by all of it's digits: if either some digit is 0, or the division by a digit has a remainder then the number is not fair
- Make a procedure that runs this code on a range of numbers (Start to Stop)
- Make a procedure that asks the user what Start and Stop should be, so the program is flexible
- Stick all these pieces together
Wether or not this code is efficient is up for debate.
...to solve pascal when nobody i know use that at work or anywhere...
This does not really matter now, does it?
All programming starts with analyzing the problem and breaking it down into small pieces.
Or are you telling me you (or your gf) could have written this code in C, Basic, Java, PHP or any other programming language, but just not in Pascal?
.. i already paid 28$ for it and yes i feel so bad for doing so .. "haha". I study psychology myself so yes i wont ever be using this at real life ...
Well, your unwillingness to analyse a problem, your stinginess when it comes to presenting the truth, your willingness to defraude, your inability to accept sincere help when offered to you and your inability to distinguish said offer from the irony that came with it, makes me pitty the patient that has the misfortune to fall into your hands.
I have no doubt however that you will have a glorious career, you seem to have all the right competencies for it.
Bart