Program to convert octal number to a binary number...
int main()
{
int oct_dec,(int i)
int result = 0;
int n = 0;
int number = 0;
if (i < 10)
return i;
while (i / 10) {
number = i % 10;
result += (number * powl(8, n));
n++;
i /= 10;
}
result += (i * powl(8, n));
{
system("pause>0");
return result;
}
but it said undeclared identifier 'i' I already tried to bring out int oct_dec," (int i)" from the outside of the parenthesis but it is still not working.. Please help me to run this program correctly..