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

 

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

Write a method that returns a list of all the factors of 'num' in increasing order with commas between them. As a precondition you may assume that 'num'>=1. Please include 1 and the value of 'num' in your list each time. Look at the test data for examples.


quiz2023_09_15_HL_factors(23523) → "1,3,7841,23523"
quiz2023_09_15_HL_factors(65537) → "1,65537"
quiz2023_09_15_HL_factors(100) → "1,2,4,5,10,20,25,50,100"

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

public String quiz2023_09_15_HL_factors(int num) { }

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: 290

Copyright Nick Parlante 2017 - privacy