Hacking

How to use calculation using cmd promt

Many of the troubleshooting techniques you will find on the internet make use of the DOS or Command Prompt. This is how computers used to work before the mouse became common. You have to type in your commands. This site will give you a quick overview of how the command prompt as a calculator.

The command processor CMD.EXE comes with a mini-calculator that can perform simple arithmetic on 32-bit signed integers:

C:\>set /a 2+2
4
C:\>set /a 2*(9/2)
8
C:\>set /a (2*9)/2
9
C:\>set /a “31>>2”
7

Note that we had to quote the shift operator since it would otherwise be misinterpreted as a “redirect stdout and append” operator.
For more information, type set /? at the command prompt.

Know more about Command Promt

You May Also Like:

 

Harinder
the authorHarinder
blacklisthackers.com is created and owned by Harinder(Aarav).Aarav is a technology Blogger from India(Dehradun). He’s Quiet type and Creative Guy who enjoys creating and exploring new trends on the WEB. Currently pursuing B.tech from DIT University.

Leave a Reply