LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help.. how do I add two numbers? (https://www.linuxquestions.org/questions/linux-newbie-8/help-how-do-i-add-two-numbers-153487/)

Tengil 03-04-2004 12:43 PM

Help.. how do I add two numbers?
 
Hi

I'm trying to write a script that adds two or more numbers... what command should I use?

I've written something like this:

echo "Give me a number"
read number

if [ $number=Integer ]
then
$number+$number.....

PLZ help if u know how I should do it.

trickykid 03-04-2004 12:47 PM

You started this in this same forum, please do not start the same conversation or discussion more than once, keep it in the same thread.

http://www.linuxquestions.org/rules.php

Tengil 03-04-2004 12:49 PM

Ooops.. sry first time here

XavierP 03-04-2004 12:58 PM

Trickykid's words are seconded :D

Have a reread of the rules.


All times are GMT -5. The time now is 10:20 PM.