You are here:

C++/programming

Advertisement


Question
create a C++/java program that performs arithmetic binary subtraction

Answer
Hi,

perhaps what you are asking for should look like this if you are coding in Java.. :

         String str1 = "4";
     String str2 = "2";

     Integer decNum1 = new Integer(str1);
     Integer decNum2 = new Integer(str2);

         String finNum = Integer.toBinaryString(decNum1 - decNum2);
         System.out.println(finNum);  

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


henry

Expertise

I can confidently answer any question both basic and advanced in C++. Areas like templates, algorithms, Gui and design patterns are of interest to me. i will not answer questions about web programming.

Experience

I have a 3- year- work experience in software Engineering.

Education/Credentials
I am a bachelor of Engineering graduate

©2016 About.com. All rights reserved.