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

 

sspiege3@schools.nyc.gov > isDescending
prev  |  next  |  chance

Given an int num , determine if the digits of the number are in descending order. If one digit is the same value as the digit next to it, then that number is not descending. (For example 100 should return false)


isDescending(542) → true
isDescending(9847651) → false
isDescending(81) → true

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

public boolean isDescending(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: 200

Copyright Nick Parlante 2017 - privacy