Pages

RSS Feed


Monday 3 October 2011

Use Command Prompt (MS DOS) as a Calculator


Using Command Prompt we can make all mathematical operations such addition, subtraction, multiplication, scale, division etc

(To open command  prompt, open Run (window key + R ) and type 'cmd' and press OK or Enter)


For calculating,
type " set /a " and type your calculations and press enter for answer.
Examples:

  • C:\>set /a  2+3 
               5
  • C:\>set /a  3*(4/2)
               6
  • C:\>set /a  10/5
               2
  • C:\>set /a  18-8
              10
  • C:\>set /a "31>>2"
              7

0 comments:

Post a Comment