Groups
Groups
Sign in
Groups
Groups
SAMS CSE IT STUDENTS
Conversations
About
Send feedback
Help
CALCULATION ON COMMAND PROMPT ! U KNEW DIS???
0 views
Skip to first unread message
Nallan
unread,
Sep 3, 2008, 3:01:29 AM
9/3/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SAMS CSE IT STUDENTS
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!
Friends U Must Try It And Use It!
Reply all
Reply to author
Forward
0 new messages