It's much less complicated than you think. No need to run anything at all.megabreit wrote:I got one way to execute the code but hardly find another one...
Is the code runnable in 2 ways without modifying it?
Or did I understand anything wrong with the challenge?
Search found 4 matches
- Tue Jun 23, 2009 3:33 am
- Forum: Challenges
- Topic: Pollyanna
- Replies: 7
- Views: 11381
Re: Pollyanna
- Mon Jun 01, 2009 12:11 pm
- Forum: Challenges
- Topic: Your Turn, Part Two
- Replies: 48
- Views: 49794
- Mon May 18, 2009 3:28 am
- Forum: Challenges Solved
- Topic: lotsa dots
- Replies: 26
- Views: 2254
- Fri Mar 06, 2009 12:02 am
- Forum: Challenges Solved
- Topic: Valuation
- Replies: 103
- Views: 9339
Delphi (no kidding, people use that! no error checking either): function Challenge153(Input: string): Integer; var s: string; p: Integer; begin s := Input; Result := 0; p := 1; while (p <= Length(s)) do begin if s[p] in ['0'..'9'] then begin Inc(Result, Ord(s[p])-48); end else if s[p] = 'x' then beg...