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

 

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

Write a method that returns the sum of the digits in the tens places of parameters 'a' and 'b'. As preconditions you may assume that a>=10 and b>=10.


test2023_01_19_APP1SLHL_tensDigitSum(124124, 23535) → 5
test2023_01_19_APP1SLHL_tensDigitSum(780, 315) → 9
test2023_01_19_APP1SLHL_tensDigitSum(20008, 4003) → 0

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

public int test2023_01_19_APP1SLHL_tensDigitSum(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: 210

Copyright Nick Parlante 2017 - privacy