Write the program so it will generate the output as shown in the sample runs below where user input is in bold

Showing the single result

Showing the single result