RosettaCodeData/Task/Even-or-odd/Batch-File/even-or-odd.bat

13 lines
131 B
Batchfile
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
@echo off
2026-02-01 16:33:20 -08:00
setlocal
2023-07-01 11:58:00 -04:00
set /p i=Insert number:
::bitwise and
set /a "test1=%i%&1"
::modulo
2026-02-01 16:33:20 -08:00
set /a test2=%i% %% 2
2023-07-01 11:58:00 -04:00
set test
pause>nul