Let us consider the simple program below for the purposes of this tutorial.

This program takes two command line arguments and performs addition and subtraction operations.

(Lets assume user inputs valid values, hence we are not error handling).