(off-list) On 2020-04-12, at 07:21:15, Seymour J Metz <[email protected]> wrote: > > Yes, but then the answer wouldn't be a year off. > Not always: https://www.explainxkcd.com/wiki/index.php/2248:_New_Year%27s_Eve
> ________________________________________ > From: IBM Mainframe Discussion List [[email protected]] on behalf of > Mike Stramba [[email protected]] > Sent: Sunday, April 12, 2020 8:18 AM > To: [email protected] > Subject: Re: About the "hello world" program > > That would take it to another level of complexity > > (Parsing day, month, year), instead of just year > > It's already complex enough for some languages (i.e. assembler) for > converting the string input to numeric etc. > > And *just* getting *any* input is a "project" in "bare-metal" assembler. > > Mike > > On 4/12/20, Seymour J Metz <[email protected]> wrote: >> say 'What is your birthday?'; >> >> >> -- >> Shmuel (Seymour J.) Metz >> http://mason.gmu.edu/~smetz3 >> >> ________________________________________ >> From: IBM Mainframe Discussion List [[email protected]] on behalf of >> Mike Stramba [[email protected]] >> Sent: Sunday, April 12, 2020 12:23 AM >> To: [email protected] >> Subject: Re: About the "hello world" program >> >>> After "Hello World!" maybe the next step would be "99 Bottles of Beer"! >> >> After "Hello World" (output only ...obv), I like an "age" program : >> >> /* rexx */ >> >> say 'What is your name ?' >> pull name >> say 'What is your age ?' >> pull age >> yb = 2020 - age >> say 'You were born in the year ' yb >> >> Mike -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
