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

 

jebbert@volusia.k12.fl.us > pTrip
prev  |  next  |  chance

Write a method that returns true if the three integer parameters are Pythagorean triplets, otherwise return false. The three numbers will be in order from lowest to highest. If you don't know what Pythagorean triplets are, you can Google it. (Google is so cool)


pTrip(5, 12, 13) → true
pTrip(3, 4, 5) → true
pTrip(10, 24, 26) → true

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

public boolean pTrip(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: 280

Copyright Nick Parlante 2017 - privacy