#include <iostream>
//#include<math.h>
using namespace std;
int add(int,int);
int sub(int,int);
int main()
{
    int a,b,c,d;
    cin>>a;
    cin>>b;
    c=add(a,b);
     cout<<c;
     d=sub(a,b);
     cout<<d;
     return 0;
}

int add( int a, int b)
{ 
    int c;
    c=a+b;
    return c;
    
}
int sub(int a,int b)
{
    int d;
    d=a-b;
    return d;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: