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]

Reply via email to