pre defined functions :: greatest of three numbers