Code a flowchart generator

Please help me
I want to generate a flowchart based on user input
Please help