₦airaland Forum

Welcome, Guest: Join Nairaland / Login / Trending / Recent / New
Stats: 1,388,110 members, 2,164,377 topics. Date: Sunday, 05 July 2015 at 02:21 PM

How To Make A Simple Calculator In Notepad Using .bat Format - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Make A Simple Calculator In Notepad Using .bat Format (11954 Views)

For Beginners: Learn How To Create A Simple Android Native App / How To Create A Simple Calculator Using Java Programing Language GUI / A Very Simple Loan Calculator In Vb6 Needed (1) (2) (3) (4)

(0) (Reply) (Go Down)

How To Make A Simple Calculator In Notepad Using .bat Format by Myhacklord(m): 6:10pm On Jan 30, 2013
Launch your Notepad from
your Windows OS PC.
Copy and paste this code
below into it
@echo off
title Batch Calculator by
(your name)
color 0c
:top
echo
————————————–
echo -Welcome to Batch
Calculator by *(your
name)!-
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 press CTRL + S to save,
in the file name put in
Calc.bat
In the File type, select All
Files then Click on Save.
Now Launch the Calc.bat by
double clicking on it.
Your Calculator is live, you can
make use of it to perform your
basic calculation functions
Re: How To Make A Simple Calculator In Notepad Using .bat Format by shorxynla(m): 5:43am On Jan 31, 2013
not working
Re: How To Make A Simple Calculator In Notepad Using .bat Format by Myhacklord(m): 10:34pm On Jan 31, 2013
[quote author=shorxynla]not workin

follow d above steps carefully
Re: How To Make A Simple Calculator In Notepad Using .bat Format by 53cur3m0d3(m): 3:51am On Feb 01, 2013
Slyr0x, I don't think this topic belongs here.. I suggest it be moved to the Programming Section..my 2cents
Re: How To Make A Simple Calculator In Notepad Using .bat Format by gamercr7: 6:15pm On Jul 03
Re: How To Make A Simple Calculator In Notepad Using .bat Format by gamercr7: 6:19pm On Jul 03
copy the following (upto exit) and paste in notepad, save the file as calculator.bat
the name can be anything but .bat is necessary.


@echo off
ECHO -Title Batch Calculator by
ECHO -(your name)
color 72
:top
echo.

echo -Welcome to Batch
echo -Calculator by *(your name)!-
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


at the place of 72 (colour),you can combine any of the below. The first letter is background colour, and the second is font colour
example: 7 background, 2 font.

BACKGROUND FOREGROUND

0 BLACK 8 GREY
1 BLUE 9 LIGHT BLUE
2 GREEN A LIGHT GREEN
3 AQUA B LIGHT AQUA
4 RED C LIGHT RED
5 PURPLE D LIGHT PURPLE
6 YELLOW E LIGHT YELLOW
7 WHITE F BRIGHT WHITE

Please inform me if it works... and please hit the like...

my fb account name is Devanam Priyan (with a cover page of a cat)

(0) (Reply)

LET'S LEARN HOW TO CONTROL HOME APPLIANCES WITH SOFTWARE AND VOICE CONTROL! / Junit: How To Set Classpath On Windows Xp / So You Want To Be A Programmer...?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2015 Oluwaseun Osewa. All rights reserved. See How To Advertise. 153
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.