Using Bash to input stuff into c program

Using Bash to input stuff into c program Hello world: 1) Item 1 2) Item 2 Enter : 2 Item 2 Menu 1) sub Item A 2) sub item B enter: 1 pmenu () {  ...