Skip to content

Profabiuls/SommaBinaria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

EN:


Binary Addition Program

Overview

This Java program performs binary addition for two input binary numbers. It ensures that the numbers are aligned by adding leading zeros to the shorter binary number.

How to Use

  1. Run the program by executing the BinaryAddition.java file.
  2. The program will prompt you to enter the longer binary number.
  3. Enter the second binary number when prompted.
  4. The program will display the result of binary addition along with the input numbers.

Example


This program adds 2 binary values

Enter the longer binary number:

10101

Enter the second binary number:

1101

The result is: 100110

The input numbers are: 0010101 0001101


Requirements

  • Java SDK installed (recommended version: Java 8 or later).

License

This project is open-source and distributed under the MIT License. Refer to the LICENSE.txt file for more details.

Contributions

We welcome contributions and improvements. Feel free to open issues or pull requests.

Enjoy adding binary numbers with this simple Java program!


ITA:


Programma di Addizione Binaria

Panoramica

Questo programma Java esegue l'addizione binaria per due numeri binari di input. Assicurati che i numeri siano allineati aggiungendo zeri iniziali al numero binario più corto.

Come Utilizzare

  1. Esegui il programma eseguendo il file BinaryAddition.java.
  2. Il programma ti chiederà di inserire il numero binario più lungo.
  3. Inserisci il secondo numero binario quando richiesto.
  4. Il programma mostrerà il risultato dell'addizione binaria insieme ai numeri di input.

Esempio


Questo programma aggiunge 2 valori binari

Inserisci il numero binario più lungo :

10101

Inserisci il secondo numero binario :

1101

Il risultato è : 100110

I numeri inseriti sono : 0010101 0001101


Requisiti

  • Java SDK installato (versione consigliata: Java 8 o successiva).

Licenza

Questo progetto è open-source e distribuito sotto la Licenza MIT. Consulta il file LICENSE.txt per ulteriori dettagli.

Contributi

Siamo aperti a contributi e miglioramenti. Sentiti libero di aprire issue o pull requests.

Divertiti ad aggiungere numeri binari con questo semplice programma Java!

About

Programma che somma 2 numeri binari

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages