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

Reply via email to