RosettaCodeData/Task/Integer-comparison/Batch-File/integer-comparison.bat
2015-11-18 06:14:39 +00:00

11 lines
231 B
Batchfile

@echo off
setlocal EnableDelayedExpansion
set /p a="A: "
set /p b="B: "
if %a% LSS %b% (
echo %a% is less than %b%
) else ( if %a% GTR %b% (
echo %a% is greater than %b%
) else ( if %a% EQU %b% (
echo %a% is equal to %b%
)))