is Pythagorean - Java java.lang

Java examples for java.lang:Math Geometry

Description

is Pythagorean

Demo Code


//package com.java2s;

public class Main {
    public static boolean isPythagorean(int a, int b, int c) {
        return ((a * a) + (b * b)) == (c * c);
    }//from   ww  w .  j a v a2  s. c o  m
}

Related Tutorials