You are on page 1of 1

#include<iostream.

h>
void main()
{
unsigned int x,y;
do
{
cout<<”x=”;cin>>x;
}
while(x==0);
while(x>0)
{
cout<<”y=”;cin>>y;
if(x>y) cout<<x%10;
else cout<<y%10;
x=y;
}
}

You might also like