C program to Convert Octal to Decimal
Write a C program to convert octal to decimal using a while loop. In this c example, the while loop iterate and divides the value into digits, and the decimal = decimal + (octal % 10) * pow(8, i++) statement convert octal to decimal number. #include <stdio.h> #include <math.h> int main() { int octal, decimal … Read more