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 > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
