my code convert from decimal to octal
here is but say input 26 ,output 23 i want output =32
what can i do?
void main()
{
int value;
cin>>value; //value=26
int rem=0;
while(value!=0)
{
rem=value%8;
if(rem%8!=0)
{
value--;
}
i++;
value=value/8;
cout<<rem; //output 23