Showing posts with label binary. Show all posts
Binary to Decimal

Binary to Decimal

int main() { int a[8],i,j=1,b=0; clrscr(); for(i=0;i<8;i++) scanf("%d",&a[i]); for(i=7;i>=0;i--) { b+=(a[i]*j); j=j*2...
Read More