#include<iostream>
#include<stack>
using namespace std;
int main()
{
unsigned number,
remainder;
stack<int>stackOfRemainder;
char response;
do
{
cout<<"Enter positive integer to convert:";
cin>>number;
while(number!=0)
{
remainder=number%2;
stackOfRemainder.push(remainder);
number/=2;
}
cout<<"Base-two representation: ";
while(!stackOfRemainder.empty() )
{
remainder=stackOfRemainder.top();
stackOfRemainder.pop();
cout<<remainder;
}
cout<<endl;
cout<<"\nMore (Y or N)? ";
cin>>response;
}
while(response=='Y'||response=='y');
}