Monday 25 June 2012

Making a Calculator


Calculator is a essential part of our life. We are using  calculator for various  work.
Here I present a some tricks to make a calculator with a notepad. Let's do the work.
Now open your notepad by Start>All program> accessories>Notepad. Although there have a calculator but we make our own. copy the code given below and paste it into note pad.

@echo off
title Batch Calculator by (Blue_r69)
color 1b
:top
echo ————————————–
echo -Welcome to Batch Calculator by *(Blue_r69)!-
echo ————————————–
echo Enter your operand
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo ————————————————————–
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit


now save the file as blue_r69.bat

After saving that open it and try to calculate some.data. Is it works. Then enjoy your own making calculator.:D

No comments:

Post a Comment