#!/bin/bash

read -p "Write 3 numbers to compare (separate with space): " N1 N2 N3

E_NO_ARG=65
#EXPECTED_ARGS=3
#if [ $# -ne $EXPECTED_ARGS ]

if [ -z "$N1" ] || [ -z "$N2" ] || [ -z "$N3" ] 
then
	echo "You must Enter 3 numbers"
	#read -p "Write 3 numbers to compare (separate with space): " N1 N2 N3
	exit $E_NO_ARGS
fi

if [ $N1 -ge $N2 ]
then
	tmp=$N1
else
	tmp=$N2
fi

if [ $tmp -ge $N3 ]
then
	big=$tmp
else
	big=$N3
fi

echo "Biggest number is $big"
exit 0
