Menu
Question Index
...

Write a program to find product of given binary strings. The result returned should also be in binary format.

Input (String, String) Output (String)
110110, 100001 11011110110
111111, 101010 101001010110
100000, 11111 1111100000
1011101, 1001 1101000101
1011010, 111 1001110110
"", 111 NA



class FindProductOfBinaryStrings
{
    public static void main(String s[])
    {
        String string_one = "1000", string_two = "1010";
        System.out.println("Product of given binary strings is " + getBinaryProduct(string_one, string_two));

    }


    public static String getBinaryProduct(String one, String two) {

}

Doubts

Problems

Topic: Creating Objects for Primitive Data Types (Byte, Short)

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App