Notepad is a special software which aid users in derivations and general output. Notepad is not a programming language, but, however, known internationally as a text editor for source codes for programming languages.
Steps to build a calculator using Notepad
Load notepad by using any of the available steps such as:
- From the search box on the task bar, type note pad and press the enter key.
- Alternatively, load the application by holding down the windows key as you press the letter R, next is type in the run dialogue box, notepad and press the enter key.
- You can also load the application by using the mouse and clicking on the start button, then next to Start button, all programs, and finally, accessories.
In the notepad window, type or input the following commands to build a calculator:
@echo off and enter
enter your title eg. SURF
press the enter key again
color F1
Press enter
: top
Press enter
echo welcome to surfday calculator
Press the enter key
echo ——————————————-
Press the enter key again
echo.
Press enter
set /p sum
Press enter
set /a ans= %sum%
Press enter
echo.
Press enter
echo=%ans%
Press enter
echo ——————————————-
Press enter
Pause
Press enter
cls
Press enter
echo previous Answer: %ans%
Press enter
Finally, save the file as
calculator.bat or you can use a different name of your choice but do not forget to add the .bat extension
About Author
Discover more from SURFCLOUD TECHNOLOGY
Subscribe to get the latest posts sent to your email.