Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,824 members, 7,820,901 topics. Date: Wednesday, 08 May 2024 at 01:16 AM

Gamercr7's Posts

Nairaland Forum / Gamercr7's Profile / Gamercr7's Posts

(1) (of 1 pages)

Programming / Re: How To Make A Simple Calculator In Notepad Using .bat Format by gamercr7: 6:19pm On Jul 03, 2015
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)
Programming / Re: How To Make A Simple Calculator In Notepad Using .bat Format by gamercr7: 6:15pm On Jul 03, 2015

(1) (of 1 pages)

(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: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

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