Can someone give me a code how to draw this in LaTex.

enter image description here

  • There are probably quite a few similar trees around, a search for horizontal tree labels right led to tex.stackexchange.com/questions/185692/… Edit: there might be better ways doing it though. A quite popular package for drawing trees is forest, you could have a look at that as well (via the manual or questions on the site). – Torbjørn T. Dec 6 '16 at 20:25
  • 2
    That's not how this site is supposed to work. It is not a LaTeX delivery service. Please attempt something yourself and post a question if you get stuck. There are an enormous number of questions around concerning trees of all kind: TikZ alone, the trees library, the tree layouts of its graph-drawing library, tikz-qtree, qtree, forest, pstrees ... Lots of examples. The TikZ example site offers even more although sometimes the code there is outdated. – cfr Dec 6 '16 at 22:23
  • 4