#include <iostream>
using namespace std;
int main()
{
int x,n,rem;
cout<<“Enter an integer: “;
cin>>n;
x=n%10;
n=n/10;
while(n!=0)
{
rem=n%10;
n=n/10;
}
n=rem-x;
cout<<n;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int x,n,rem;
cout<<“Enter an integer: “;
cin>>n;
x=n%10;
n=n/10;
while(n!=0)
{
rem=n%10;
n=n/10;
}
n=rem-x;
cout<<n;
return 0;
}