how to change it into one main() function code..

Printable View