Example Program to calculate Factorial
|
02-02-2018, 08:28 AM
Post: #19
|
|||
|
|||
RE: Example Program to calculate Factorial
(02-02-2018 02:44 AM)Gene Wrote: For historical purposes and ideas... That's a nice one. (02-02-2018 02:44 AM)Gene Wrote: Here is factorial from V3N5P4 This one doesn't get 0! right and it even fails for 1!. Both inputs cause an infinite loop. But that's not worse than the solution in the Applications Progams book which fails in the same way – just another example of poor programming by HP themselves. I really wonder if they were not able to do better or if they simply didn't care. #-\ (02-02-2018 02:44 AM)Gene Wrote: Also from V3N5P4 And that one also cannot handle 0!. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)