can you please tell me the error in my code as while running it on the VSCODE my input and output both are correct but while writing it here it gives output as 0 for 63 input
Decimal to Octal
you forgot to initialise i with 1
int i=1;
after this your code will give correct output