Writea program that defines a template function named add(). Thisfunction takes two arguments, add two variables and then return thesum. Inmain function, define two variables of type int, two variables oftype float and two objects callthe add() function three times for these different datatypes. Note:String is auser - When template function will be calledto add two objects of type String then it must concatenate twostrings. Youroutput should look like this: SampleOutput: Enter twointeger values to be added EnterFirst value:12 EnterSecond value:25 Enter twofloat values to be added EnterFirst value:13.5 EnterSecond value:14.2 Enter twoStrings to be added EnterFir st value:Virtual EnterSecond value:University Additionof two variables of different data types Sum ofvalues of type int = 37 Sum ofvalues of type float = 27.7 Sum ofvalues of type String = VirtualUniversity