Timeline for Generate Pascal's triangle
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 24, 2011 at 13:01 | comment | added | Steven Rumbalski | Basically, the n must be supplied from an external source at run time and the apparatus for capturing it is included in your program. Typically, that means by command line argument, or stdin, or file. By file is almost never used because it's invariably longer than the other two options. | |
| Oct 22, 2011 at 23:22 | comment | added | Tomas | @PeterOlson, what does it mean "provided by input"? | |
| Oct 22, 2011 at 22:56 | comment | added | Peter Olson | @TomasT. I don't care how you get the input, as long is n is provided by input somehow. | |
| Oct 22, 2011 at 10:08 | comment | added | Tomas | @PeterOlson, so you require to read it from console? That's clumsy and it spoils the solutions... then I would have to use scan() instead of n and have 5 characters more... Please confirm and I'll modify my solution. | |
| Oct 22, 2011 at 0:04 | comment | added | Peter Olson | @StevenRumbalski I don't think that's valid unless it takes input. I don't know R, so maybe the compiler makes it so that undefined variables prompt an input, so it might be ok, but if it's like most other languages in that regard, I don't think it is. | |
| Oct 21, 2011 at 21:52 | comment | added | Steven Rumbalski | I'm asked Peter Olson to clarify. | |
| Oct 21, 2011 at 21:38 | comment | added | Tomas | @Steven, "Given an input n"... so may I assume the n is given? I corrected the code. Is this now OK? | |
| Oct 21, 2011 at 21:34 | history | edited | Tomas | CC BY-SA 3.0 | edited body |
| Oct 21, 2011 at 20:59 | comment | added | Steven Rumbalski | You're missing one of the requirements: "Given an input n (provided however is most convenient in your chosen language)" | |
| Oct 21, 2011 at 17:29 | history | edited | Tomas | CC BY-SA 3.0 | added 55 characters in body |
| Oct 21, 2011 at 16:29 | history | answered | Tomas | CC BY-SA 3.0 |