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

 

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

Write a method that returns the "ones place" of the integer parameter. You may not use any arrays or strings. Note that the integer parameter can be any number, including negatives and zero.


nov9_2015_APSLHL_endsWithDigit(53) → 3
nov9_2015_APSLHL_endsWithDigit(67) → 7
nov9_2015_APSLHL_endsWithDigit(-23) → 3

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

public int nov9_2015_APSLHL_endsWithDigit(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