0

i seem to have messed up on the out put some how

```
#include<iostream>
#include<cmath>
using namespace std;
char ans[16]= {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
int digit2value(char);
char value2digit(int);
int conversion(int, int, int);
int reversing(int p[],int i);
int main(){
int radixa,radixb,number;
cout<<"radix a(10) ";// i am going to changing program
cin>>radixa; // after i can get it to run decimals first
cout<<endl;
cout<<"radix b(2,8,10,16):";
cin>>radixb;
cout<<endl;
cout<<"number to be converted: ";
cin>>number;
cout<<endl;
cout<<reversing;
cout<<endl;
return 0;
}
int reversing(int p[],int i){
int j;
for (j=0;i-1>=0;i--,j++){
ans[j]=p[i-1];
}
return 0;
}
int conversion(int radixa ,int number ,int radixb){
int p[50],i=0,remainder=0;
if (radixa == 10)
for(i=0;number>0;i++){
if(number == 0)
return 0;
else{
remainder = number%radixb;
number/=radixb;
p[i]=remainder;
return p[i];
}
}
}
```