How to implement such kind of codes

Printable View