Monday 28 March 2016

CALCULATIONS ON COMMAND PROMPT (CMD)

THE COMMAND PROCESSOR CMD.EXE COMES WITH A MINI CALCULATOR THAT CAN PERFORM SIMPLE ARITHEMATIC ON 32BIT SIGNED INTEGERS.

THESE COMMANDS ARE:

C:\>set/a2+2
C:\>set/a2*9
C:\>set/a(2*9)/2

NOTE: We had 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 CMD.

HERE "+" stands for ADDITION.
"*" stands for MULTIPLICATION.
"/" stands for  DIVISION.


Share:

0 comments:

Post a Comment