Menu
Question Index
...

Write a program to create the division string containing the Dividend, Divisor, Quotient and Remainder. Note that x, y and z are given, where the divisor is 'x' times of Quotient and it is 'y' times of Remainder. 'z' is the remainder.

Input (int, int, int) Output (String)
3, 5, 1 Dividend = 6, Divisor = 5, Quotient = 1, Remainder = 1
7, 2, 4 Dividend = 12, Divisor = 8, Quotient = 1, Remainder = 4
1, 5, 2 Dividend = 102, Divisor = 10, Quotient = 10, Remainder = 2
2, 5, 4 Dividend = 204, Divisor = 20, Quotient = 10, Remainder = 4



class CreateDivisionString
{
    public static void main(String s[])
    {
        System.out.println(createDivisionString(3, 5, 1));

    }


    public static String createDivisionString(int x, int y, int z) {
    }

}

Doubts

Problems

Topic: Java String Concatenation with Other Data Types

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App