int main() { int binary, decimal = 0, rem, base = 1; printf("Enter a binary number: "); scanf("%d", &binary); while(binary > 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; }" - an innovative digital circuit design by Chitranjali Ranjan using digital logic components. View, edit, or fork this circuit on DeldSim." /> 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; } by Chitranjali Ranjan" /> int main() { int binary, decimal = 0, rem, base = 1; printf("Enter a binary number: "); scanf("%d", &binary); while(binary > 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; }" - an innovative digital circuit design by Chitranjali Ranjan using digital logic components. View, edit, or fork this circuit on DeldSim." /> 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; } by Chitranjali Ranjan" /> int main() { int binary, decimal = 0, rem, base = 1; printf("Enter a binary number: "); scanf("%d", &binary); while(binary > 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; }" - an innovative digital circuit design by Chitranjali Ranjan using digital logic components. View, edit, or fork this circuit on DeldSim." />

#include int main() { int binary, decimal = 0, rem, base = 1; printf("Enter a binary number: "); scanf("%d", &binary); while(binary > 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; }

Chitranjali Ranjan
Chitranjali Ranjan
Created on Mar 30, 2026 0 0 0
#include <stdio.h>  int main() {     int binary, decimal = 0, rem, base = 1;      printf( 0) { rem = binary % 10; // get last digit decimal = decimal + rem * base; binary = binary / 10; // remove last digit base = base * 2; } printf("Decimal equivalent = %d", decimal); return 0; }" class="w-full h-full object-contain" onerror="this.onerror=null;this.src='/ugc/circuits/base.jpeg'" />
100%

Procedure

  1. Add IC 74LS86 into ICBase-1 (74LS86).
  2. Add IC 74LS86 into ICBase-2 (74LS86).
  3. Connect Input-2 to Pin-1 (Input) of ICBase-1 (74LS86).
  4. Connect Input-1 to Pin-4 (Input) of ICBase-1 (74LS86).
  5. Connect Output-1 to Pin-3 (Output) of ICBase-1 (74LS86).
  6. Connect Input-0 to Pin-5 (Input) of ICBase-1 (74LS86).
  7. Connect Output-0 to Pin-6 (Output) of ICBase-1 (74LS86).
  8. Connect GND Port to Pin-7 (Ground) of ICBase-1 (74LS86).
  9. Connect Input-10 to Pin-1 (Input) of ICBase-2 (74LS86).
  10. Connect Input-9 to Pin-2 (Input) of ICBase-2 (74LS86).
  11. Connect Output-9 to Pin-3 (Output) of ICBase-2 (74LS86).
  12. Connect Pin-3 (Output) of ICBase-2 (74LS86) to Pin-4 (Input) of ICBase-2 (74LS86).
  13. Connect Input-8 to Pin-5 (Input) of ICBase-2 (74LS86).
  14. Connect Output-8 to Pin-6 (Output) of ICBase-2 (74LS86).
  15. Connect GND Port to Pin-7 (Ground) of ICBase-2 (74LS86).
  16. Connect VCC Port to Pin-20 (VCC) of ICBase-2 (74LS86).
  17. Connect VCC Port to Pin-1 (Input) of ICBase-1 (74LS86).
  18. Connect Input-1 to Pin-2 (Input) of ICBase-1 (74LS86).
  19. Connect Input-2 to Pin-20 (VCC) of ICBase-1 (74LS86).