#42. [백준_C언어] 4153 : 직각삼각형
입력 코드 #include #include main() { int a, b, c; while (1) { scanf("%d %d %d", &a, &b, &c); if (a != 0 && b != 0 && c != 0){ if (pow(a, 2) + pow(b, 2) == pow(c, 2)) printf("right\n"); else if (pow(b, 2) + pow(c, 2) == pow(a, 2)) printf("right\n"); else if (pow(a, 2) + pow(c, 2) == pow(b, 2)) printf("right\n"); else printf("wrong\n"); } else break; } } 코드 설명 #수학 #기하학 #조건문 #반복문 #include #include main..