Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Even-or-odd/Batch-File/even-or-odd.bat
Normal file
14
Task/Even-or-odd/Batch-File/even-or-odd.bat
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@echo off
|
||||
set /p i=Insert number:
|
||||
|
||||
::bitwise and
|
||||
set /a "test1=%i%&1"
|
||||
|
||||
::divide last character by 2
|
||||
set /a test2=%i:~-1%/2
|
||||
|
||||
::modulo
|
||||
set /a test3=%i% %% 2
|
||||
|
||||
set test
|
||||
pause>nul
|
||||
Loading…
Add table
Add a link
Reference in a new issue