3 janv. 2014

Create a simple batch calculator

In this tutorial I'm gonna show you how it's easy to create a calculator with commandes DOS

Create a txt file and open it with a text editor (ex: Notepad++)

To download Nodepad++ for free click on the picture

DownloadButton

Now copy the code below and past it to your txt file
color 1f
title Calcul programed by GTT
CLS
@echo off & mode con: cols=54 lines=16
cls
:Menu
cls
echo.
echo  Enter a math problem
echo.
set/p math=
if %math%==Exit exit
set/a math2=%math%
echo.
echo %math%=%math2%
echo.
pause
goto Menu

 

Save it as a .bat file and run it

simplecalculatorr

Like you see in the pictures belowe all things worked

simplecalculatorbatch

 

notetotake

You can use the multiplication and division and sustraction too.

In this tutorial I'm gonna show you how it's easy to create a calculator with commandes DOS

Create a txt file and open it with a text editor (ex: Notepad++)

To download Nodepad++ for free click on the picture

DownloadButton

Now copy the code below and past it to your txt file
color 1f
title Calcul programed by GTT
CLS
@echo off & mode con: cols=54 lines=16
cls
:Menu
cls
echo.
echo  Enter a math problem
echo.
set/p math=
if %math%==Exit exit
set/a math2=%math%
echo.
echo %math%=%math2%
echo.
pause
goto Menu

 

Save it as a .bat file and run it

simplecalculatorr

Like you see in the pictures belowe all things worked

simplecalculatorbatch

 

notetotake

You can use the multiplication and division and sustraction too.

Aucun commentaire:

Featured Posts

  • Top Commentators Widget For Blogger21/08/2011 - 0 Comments
  • La compilation et les modules en C et en C++03/01/2014 - 0 Comments
  • Commandes Linux: Les autres commandes30/12/2013 - 0 Comments
  • Move the Location of your Temporary Internet files13/09/2013 - 0 Comments
  • Forex Market02/03/2012 - 0 Comments
  • blogger