#include <iostream>
int add(int a,int b){
int sum=a+b;
return sum;
}
float add(float a,float b){
float sum=a+b;
return sum;
}
int main() {
using namespace std;
int a=5;
int b=6;
float c=8.4;
float d=7.4;
int r1 = add(a,b);
float r2 = add(c,d);
cout << r1 << endl << r2 ;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: