Skip to main content
clarification of decimal points, negative numbers and clearer output rules
Source Link

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions with denominators smaller than B. Do not generate equivalent fractions with decimal points or negative numbers.
  • Your output must look like this: look like this.(This example is for entering 10 as A and 20 as B)
1/2 2/4 3/6 4/8 5/10 6/12 7/14 8/16 9/18 10/20
  • If you cannot generate equivalent fractions with denominators smaller than B, output A/B itself: (This example is for entering 1 as A and 2 as B)
1/2
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions with denominators smaller than B.
  • Your output must look like this.
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions with denominators smaller than B. Do not generate equivalent fractions with decimal points or negative numbers.
  • Your output must look like this: (This example is for entering 10 as A and 20 as B)
1/2 2/4 3/6 4/8 5/10 6/12 7/14 8/16 9/18 10/20
  • If you cannot generate equivalent fractions with denominators smaller than B, output A/B itself: (This example is for entering 1 as A and 2 as B)
1/2
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.
clarify
Source Link

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions that arewith denominators smaller than A/B.
  • Your output must look like this.
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions that are smaller than A/B.
  • Your output must look like this.
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions with denominators smaller than B.
  • Your output must look like this.
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.
Source Link

Challenge

Create a program that, when entered two numbers A as a numerator and B as a denominator, generates a list of equivalent fractions based off the fraction A/B.

Definition

Equivalent fractions are any set of fractions that equal the same when converted to a decimal number. Example: 3/6 (three sixths), 2/4 (two fourths) and 1/2 (one half) are equivalent fractions, since each fraction equals 0.5 when converted to a decimal number.

Rules

  • Generate only the equivalent fractions that are smaller than A/B.
  • Your output must look like this.
  • The answer with the lowest amount of bytes wins.
  • You may use any programming language of your choice.