Answer:
Using C++
#include<iostream>
using namespace std;
int main()
{
int F1,F2,I1,I2,feet,inches;
cout<<"Enter the Feet: "; cin>>F1;
//----------------------------------------------
cout<<"Enter the Inches: "; cin>>I1;
//----------------------------------------------
cout<<"Enter the Feet: "; cin>>F2;
//----------------------------------------------
cout<<"Enter the Inches: "; cin>>I2;
//----------------------------------------------
feet = F1 + F2 + (I1 + I2) / 12;
inches = (I1 + I2) % 12;
cout<<"Feet: "<<feet<<" Inches: "<<inches<<endl;
return 0;
}
Explanation: