If the range of a gun which fires a shell with muzzle speed V is R , then the angle of elevation of the gun is
cos−1(V2Rg)
cos−1(gRV2)
12(V2Rg)
12sin−1(gRV2)
R=v2sin 2θg⇒θ=12sin−1(gRv2)