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

 

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

Write a method that returns the digit in the ones place of the input parameters if their ones places match. Otherwise return zero.


dec1_2017_SLHL_sameOnes(467, 827) → 7
dec1_2017_SLHL_sameOnes(7279, 6271) → 0
dec1_2017_SLHL_sameOnes(8732, 88142) → 2

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

public int dec1_2017_SLHL_sameOnes(int a, int b) { }

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