arg_cnt=$#
arg_list=$*
biggest=$1
if [ $arg_cnt -eq 0 ]; then
echo "$RF there should be minimum 1 argument"
exit 1
fi
for each_arg in $arg_list
do
if [ $each_arg -gt $biggest ]; then
biggest=$each_arg
fi
done
echo " Biggest number is : $biggest \n"
exit 0
998.
program to find maximum of two numbers using pointers
88,888
874321 is the largest number made from all these digits.
998,000
int i, largest=0;do { scanf ("Enter a number (0 to exit): %d", i); if (i>largest) largest=i; } while (i!=0); printf ("Largest number is: %d\n", largest);
If you are using windows, MSDOS shell is integrated by default..
depends on your answer
998.
program to find maximum of two numbers using pointers
88,888
874321 is the largest number made from all these digits.
998,000
The three largest numbers (in descending order) would be... 975410, 975401 & 975104
93,876
The possibilities are all the counting numbers from the largest 16-digit one to the largest 17-digit one.99,999,999,999,999,999 minus 9,999,999,999,999,999 = 90,000,000,000,000,000
Arranging them in the order 9521 produces the largest number. Using operands, using the exponential function (if available) would create the largest number. [(2 ^5)^9]^1= 35184372088832