- @echo off
- setlocal enabledelayedexpansion
- for /l %%i in (1 1 100) do (
- for /l %%j in (%%i 1 100) do (
- for /l %%k in (%%j 1 100) do (
- set /a a=%%i * %%i
- set /a b=%%j * %%j
- set /a c=%%k * %%k
- set /a sum=!b!+!a!
- if !sum!==!c! (
- echo %%i*%%i+%%j*%%j=%%k*%%k
- )
- )
- )
- )
- pause
复制代码
|