Suppose the man starts from A and goes 3 km north and reaches B.
He then goes 4 km towards east and reaches C.
∴ AB = 3 km
BC = 4 km
We have to find AC.
By Pythagoras theorem:
⇒AC2=AB2+BC2
⇒AC2=32+42
=9+16
⇒AC2=25
⇒AC=√52
∴AC=5 km
Hence, he is 5 km far from the initial position.