C Program For DECIMAL TO BINARY.
void main() { int n,z=0,i,a[20]; clrscr(); printf("Enter the n value"); scanf("%d",&n); while(n>0) { a[z]=n%2; z++; n=n/2; } for(i=z;i>=0;i--) { printf("%d",a[i]); } getch(); }
Technicalsymposium.com is an education & event sharing information website-All rights reserved
Copyright Disclaimer:Section 107 of the Copyright Act Fair Use Contents. Purpose of Education & Teaching Intention. Not for commercial purpose.