[Info-vax] ChatGPT - Joke about OpenVMS and Linux walking into a bar
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Sat Dec 31 15:39:25 EST 2022
On 2022-12-31, Slo <slovuj at gmail.com> wrote:
>> Code a DCL procedure to add the first 20 integers, then mail it to vms at vsi.com
>
> $! This DCL procedure adds the first 20 integers and sends the result to vms at vsi.com
> $! Declare variables
> $ integer = 0
> $ sum = 0
> $! Loop through the first 20 integers and add them to the sum
> $ do i = 1, 20
> $ sum = sum + i
> $ enddo
Oh, I wish. :-) Oh, I really, really, wish. :-)
I wonder where it got that from ?
A suggestion: try asking it to do something with associative arrays in
DCL and see what it comes up with. :-)
> $! Use the MAIL command to send the result to vms at vsi.com
> $ mail/subject="Sum of the first 20 integers" vms at vsi.com "The sum of the first 20 integers is: " sum
> $! End the procedure
> $ exit
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list