Yeah. I can write code to do that. Thanks for asking.

This has the hallmarks of a homework assignment...

John

-----Original Message-----
From: Bruce Ambraal [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 16:31
To: [EMAIL PROTECTED]
Subject: HELP! : To write a script that reads numbers from STDIN and
print on STDOUT.


Hi ALL

Could  any one write some coding for the following problem.

In perl against Linx could someone help.
----------------------------------------------------------------------------
---------------------------------------
I want to write a script that reads in four numbers from STDIN and add the
first two together, and than adds the second 2 together.
The input format is a number on a line.(press enter after every number)
I also want to ompare the resulting two numbers with > or < and print the
largest on STDOUT.

----------------------------------------------------------------------------
----------------------------------------
I have a second part to the previous problem.

I now want to modify the script to read a name, and then the number
(again each on its own line)
To read four name/number pairs
To read two names from STDIN and add the associated numbers together.
Repeat this step.
Then to compare the resulting two numbers with
< or > and print the largest on STDOUT.

Thanks in advance

Bruce


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to