Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,619 members, 7,816,549 topics. Date: Friday, 03 May 2024 at 01:00 PM

Trick: How To Make A Simple Calculator Using Notepad. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Trick: How To Make A Simple Calculator Using Notepad. (1848 Views)

Creating A Simple Calculator Using HTML,CSS And Javascript / How To Create A Simple Calculator (using Javascript ) / 10 Coolest Notepad Tricks (2) (3) (4)

(1) (Reply) (Go Down)

Trick: How To Make A Simple Calculator Using Notepad. by Techgoon(m): 5:38pm On Mar 17, 2016
Open Notepad.exe and paste the following code

@echo off

title Simple Calculator by Techgoon

color 0A

:top

echo --------------------------------------

echo -Welcome to Simple Calculator by Techgoon

echo --------------------------------------
echo Use the Following Operators for calculation
echo * = MULTIPLY
echo + = ADD
echo - = SUBTRACT

echo / = DIVIDE
echo Enter your Equation

echo.
set /p sum=

set /a ans=%sum%

echo.

echo = %ans%

echo --------------------------------------------------------------

pause

cls

echo Previous Answer: %ans%

goto top

pause

exit


Now Click on CTRL + S to save and name it Calc.bat
Now you can Launch your calculator by double clicking on the Calc.bat
You will see your calculator and you can use it to perform simple Calculation


http://www.techgoon.com/make-simple-calculator-using-notepad/

Re: Trick: How To Make A Simple Calculator Using Notepad. by khristals(m): 5:48pm On Mar 17, 2016
quite educative
Re: Trick: How To Make A Simple Calculator Using Notepad. by sinkhole: 6:43pm On Mar 17, 2016
@Techgoon, is there any ebook on shell scripting? I need one
Re: Trick: How To Make A Simple Calculator Using Notepad. by Techgoon(m): 7:15pm On Mar 17, 2016
sinkhole:
@Techgoon, is there any ebook on shell scripting? I need one

Nope not yet
Re: Trick: How To Make A Simple Calculator Using Notepad. by sinkhole: 7:23pm On Mar 17, 2016
Techgoon:

Nope not yet
Maybe you then consider writing one grin grin

(1) (Reply)

Python Books To Start Learning Python Programming. / JESUS LOVES YOU SO MUCH. GIVE YOUR LIFE TO JESUS. JOHN3:16 / When He Came Here 5 Years Ago, We Called Him A Scam, See Our Lives

(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. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.