rse2 has asked for the wisdom of the Perl Monks concerning the following question:
i have an assignment to make a perl file, where 1. ask the user to type in a number. 2. ask the user to type in another number. 3. ask user what is to be done multiply, add, subtract, divide. 4. display the correct answer.
So far i got the two first covered. but i am stumped at how to make it calculate random things. I am very new at this. Do i have to program to do every number or is there a way to make it calculate random things.
Thanks a million
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to make a perl file add random numbers that a user enters?
by toolic (Bishop) on Aug 03, 2011 at 18:55 UTC | |
|
Re: How to make a perl file add random numbers that a user enters?
by dreadpiratepeter (Priest) on Aug 03, 2011 at 19:28 UTC | |
|
Re: How to make a perl file add random numbers that a user enters?
by osbosb (Monk) on Aug 04, 2011 at 14:12 UTC |