Ethyl bromide and bromocyclohexane are treated with ammonia separately with ammonia, the products formed respectively are
Ethylamine, Cyclohexene
Ethyl bromide being 10 alkyl halide, undergoes substitution reaction to give ethylamine whereas 20 halide like bromocyclohexane preferably undergoes dehydrohalogenation to give an alkene.