id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > reduce
prev  |  next  |  chance

Write a method that has a string input parameter. This input parameter represents a positive fraction. Return a string that represents this fraction in reduced form.


reduce("3/600") → "1/200"
reduce("7/3") → "7/3"
reduce("5/18") → "5/18"

...Save, Compile, Run (ctrl-enter)

public String reduce(String fraction) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 440

Copyright Nick Parlante 2017 - privacy