/*Write a program to convert Octal to Binary*/
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a,b; printf("Enter 2 digit octal no."); scanf("%d",&a); int x,y; x=a%10; y=a/10; b=(y*8)+(x);//changing no. to decimal int i[5]; for(int j=0;b!=0;b/=2) { i[j]=b%2; j++; } for(int r=j-1;r>=0;r--) { printf("%d",i[r]); } getch(); }