Good morning sir,
I am facing ERROR MESSAGE in the code that I am trying to submit but even after using decimal-octal calculator on internet, My code is getting the same output as shown in internet.
Kindly let me know where I am going wrong because my output is matching with the real octal value.
My Code:
int main(){
int n,a;
cin>>n;
while(n>0){
a=0;
a=n%8;
n=n/8;
cout<<a;
}
return 0;
}