Write a program to calculate addition of two number using prototyping of methods.