Calculations using Command Prompt!

The command processor CMD.EXE can perform simple arithmetic on 32-bit signed integers:

Eg:

C:\>set /a 5+5
10

C:\>set /a 4*(8/2)
16

C:\>set /a (4*8)/4
8


For more information, type 'set /?' in the command prompt.

Replies

You are reading an archived discussion.

Related Posts

Event: Incident 2011 Organised by: NITK Surathkal, Mangalore Key dates: Fest dates: 23rd-27th February 2011
Event: Techfest 2011 Organised by: IIT Bombay, Powai Key dates: Fest dates: 7th-9th January 2011 Initiative Have you ever dreamt of a different world, A world that encourages creative thinking,...
Here's the latest from IBM Ponder This - December 2010 - Source: IBM Research | Ponder This | December 2010 challenges In an election, Charles came in last and Bob...
Hello everybody. I am a new member here as well. As I can see newcomers are warmly welcomed in this forum so I do hope that I’ll not regret about...
Hello CEans! Name: Michael Pienaar *Engineering Trade: I am not in engineering trade, but I am actually an artist. My interests sometimes involve technical areas of engineering, from computer programming,...