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

 

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

Write a method that returns the remainder you get after squaring the integer 'n', adding one, and then dividing that result by n. I bet you cannot do this more efficiently than I can!!!


orderSystemSquares(5) → 1
orderSystemSquares(5) → 1
orderSystemSquares(5) → 1

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

public int orderSystemSquares(int n) { }

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

Copyright Nick Parlante 2017 - privacy