Răspuns:
1.#include<iostream>
using namespace std;
{int a,b,diferenta;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
diferenta=a-b;
cout<<"diferenta="<<diferenta;
return 0;
}
2.
#include<iostream>
using namespace std;
{int a,b,produs;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
produs=a*b;
cout<<"produs="<<produs;
return 0;
}
Explicație: