LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   here is my real question (https://www.linuxquestions.org/questions/linux-general-1/here-is-my-real-question-43489/)

zibertron 01-31-2003 04:47 AM

here is my real question
 
um sorry for the wrong questions posted earlier,and if i offended anyone, but here goes
I need to make a script that accepts ten numbers and displays the highest number entered, so far i have the following:
#!/bin/bash
echo " please enter ten numbers"
echo "enter num 1"
read num1
echo "enter num 2"
read num2
echo "enter num 3" #im only doing 3 numbers now to test it first
read num3
if [ $num1 -gt $num2 -a gt $num3 ;; $num2 -gt $num1 -a $num3 ;; $num3 -gt $num1 -a -gt $num2 ]
then
echo " $num1 is the highest number"
elif
echo " $num2 is the highest number"
else
echo " $num3 is the highest number"
fi
# or what else could i do?

0x0001 01-31-2003 05:26 AM

It seems like this guy doesn't only want us to do his homework, he seem also inept of reading what he agreed to (i.e. no double posts)

please answer here: http://www.linuxquestions.org/questi...threadid=43486

zibertron 02-01-2003 01:48 AM

screw you guys man, i thought this was the place were nubies come to....seems more like the place were anal-retentive ppl hang out

FredrikN 02-01-2003 05:20 AM

I gave you the answer in the other post and by the way,

you won't get any help with an attitude like that

trickykid 02-01-2003 09:07 AM

Well this thread is being closed for obvious reasons.

And zibertron,

As the rules state, double posting is not allowed. You agreed to that when registering on this site. There is never a reason to double post ever !

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

BTW, it seems you got plenty of replies in your first thread that was actually posted in the correct forum.


All times are GMT -5. The time now is 04:10 AM.