Read & Write Reviews About The Tools You Use.
Sign up for free to start sharing your opinion today!

Currently Browsing:
Top Rated
Newest
All
  • Company: Microsoft
    Average User Rating:
    • Currently 4.76/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Google
    Average User Rating:
    • Currently 5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Kaseya
    Average User Rating:
    • Currently 3/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Microsoft
    Average User Rating:
    • Currently 4/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: HP
    Average User Rating:
    • Currently 4.666665/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: App Press
    Average User Rating:
    • Currently 4.5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Microsoft
    Average User Rating:
    • Currently 4.5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: PC SOFT
    Average User Rating:
    • Currently 4.9/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: WordPress
    Average User Rating:
    • Currently 4.666665/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Xamarin
    Average User Rating:
    • Currently 1/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Apple Inc.
    Average User Rating:
    • Currently 2/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: ColeSoft
    Average User Rating:
    • Currently 4.8/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Open Source
    Average User Rating:
    • Currently 2/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: Intel
    Average User Rating:
    • Currently 5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: XTRAN, LLC
    Average User Rating:
    • Currently 5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: xUnit.net
    Average User Rating:
    • Currently 5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
  • Company: YASCA
    Average User Rating:
    • Currently 5/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
Prev    [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ]    Next

Write Reviews

Share your opinion about the tools you use.

Join the Evans Data Developer Panel!

As a DevNet panelist you will:

1. Have your voice heard on hot topics, innovative technologies and key initiatives.
2. Receive points for every validated survey submission.
3. Redeem award points for cash.

SOLVE THIS CODE

What does this code do?

static void mysteryFunction(int nr, int dr) {
        if (dr == 0 || nr == 0) {
            return;
        }
        if (dr % nr == 0) {
            System.out.print("1/" + dr / nr);
            return;
        }
        if (nr % dr == 0) {
            System.out.print(nr / dr);
            return;
        }
        if (nr > dr) {
            System.out.print(nr / dr + " + ");
            mysteryFunction(nr % dr, dr);
            return;
        }
        int n = dr / nr + 1;
        System.out.print("1/" + n + " + ");

        mysteryFunction(nr * n - dr, dr * n);
    }
 
// Driver Code
    public static void main(String[] args) {
        int nr = 6, dr = 14;
        System.out.print("Fraction Representation of "
                + nr + "/" + dr + " is\n ");
        mysteryFunction(nr, dr);
    }
}

Programming Language: Java

Newsletter

Get weekly reviews sent directly to your inbox!