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

 

isVerticalLine


Define a function that when passed the coordinates of two points, returns true if the line joining them is a vertical line.


isVerticalLine(10, 70, 10, 90) → true
isVerticalLine(20, 50, 40, 50) → false
isVerticalLine(10, 70, 20, 90) → false

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

boolean isVerticalLine(int x1, int y1, int x2, int y2) { }

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: 2 Post-solution available

Copyright Nick Parlante 2017 - privacy