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

 

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

Write a method that returns the MOST SIGNIFICANT digit in the non-negative integer input parameter. For example, 72348 has 7 as its most significant digit. Recursion is optional.


bbvdMostSigDigAdvanced1(129824) → 1
bbvdMostSigDigAdvanced1(42892) → 4
bbvdMostSigDigAdvanced1(9274897) → 9

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

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