Software’s has become the utmost part of routine technical and non-technical assignments. Moreover, they are still even further influencing engineering and industrial work. Due to this reason learning programming languages is becoming more important for better future prospects, particularly for the students. This paper gives a good insight of comparative programming in two different languages, i.e, Microsoft Visual Basic and C#. To accomplish this task, one of the most commonly calculated parameter in petroleum and process industry; gas gravity, has been coded in both languages, giving a comparison of coding in both languages while approaching towards the same target/ output.