write a program to convert binary to octal.
Answers
Answered by
2
Explanation:
Program to convert a number from binary to octal
#include <stdio.h>
#include <math.h>
int binary_to_octal(long int binary)
{
int octal = 0, decimal = 0, i = 0;
while(binary != 0)
Similar questions