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

 

dsawyer@methacton.org intro_p4_level_2 > pythaggy
prev  |  next  |  chance

Given three sides of a triangle, in ascending order, return true if this is a right triangle. Otherwise return false. If any of the numbers are not positive, return false.


pythaggy(3, 4, 5) → true
pythaggy(3, 4, 6) → false
pythaggy(-3, 4, 5) → false

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

public boolean pythaggy( int a, int b, int c ){ }

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

Copyright Nick Parlante 2017 - privacy