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

 

abraskin@mbusd.org 2016_practice_set_0 > distance
prev  |  next  |  chance

Given two point in the form x, y return the distance between those points.


distance(1, 1, 1, 4) → 3.0
distance(1, 1, 4, 1) → 3.0
distance(1, 1, 1, 1) → 0.0

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

public double distance(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: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy