JAVA_프로그래머스_PCCE 기출문제 2번 피타고라스의 정리 풀이 import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int c = sc.nextInt(); int b_square = (c * c) - (a * a); System.out.println(b_square); } } 피타고라스 공식을 기준으로 해당 공식에 맞춰 풀면 끝 * 출처 https://school.programmers.co.kr/learn/courses/30/lessons/250132...
JAVA_프로그래머스_PCCE 기출문제 2번 피타고라스의 정리에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.