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

 

davereed@creighton.edu csc222 > sequence
prev  |  next  |  chance

sequence() -- You are given three numbers and want to determine if those numbers represent an increasing sequence (i.e., each number is larger than the preceding one), a decreasing sequence (i.e., each number is smaller than the preceding one), or neither. The method should return either "increasing", "decreasing", or "neither", accordingly.


sequence(1, 2, 3) → "increasing"
sequence(3, 2, 1) → "decreasing"
sequence(1, 1, 1) → "neither"

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

public String sequence(int num1, int num2, int num3) { }

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: 50

Copyright Nick Parlante 2017 - privacy