Computer Science, asked by swatitomar0789, 17 days ago

write a program to convert binary to octal.​

Answers

Answered by amankumarmishra73
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