Help with script

Hello everyone,

Im a java student but I'm experimenting with Fedora so I would appreciate if someone can help me out.

I'm trying to write a script in Fedora that reads a number from the user that represents a number of cents. The script will then display the number of quarters, dimes, nickles and pennies that it equals (like you are making change).

Thank you in advance for your help!

so how far did you reached?...

you can use the following commands

echo - for displaying messages into the screen
read - for reading values input by user

  • + - / => for calculation

now give it a try

regards,
Ahamed

---------- Post updated 04-17-11 at 12:35 AM ---------- Previous update was 04-16-11 at 10:59 PM ----------

Something to get you started

#!/bin/ksh

echo "Enter the radius : \c"
read radius
((area=3.14*radius*radius))
echo "Area : $area"

regards,
Ahamed

Also, please take a look at how to post good questions. A well framed question with relevant title will attract more number of users in the forum to take a look at your problem and solve/attempt to solve that.

Take a look at the title you have posted and how to make it better. :b: