Introduction: How to Make a Calculator With Command Promt
hey guys, this can help you in maths classes :) this is a simple calculator that also lets you change the colour at the start by typing in a colour code. colour codes can be shown if yout type z when your asked to choose one. because sreenshots werent working i can only give you the codes
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: The Code
to make the calculator simply copy and paste this code into notepad then save it as a .bat
echo Colour Changer, Type In The Colour Code You Want Then Press Enter.-
set /p code=colour Code:
echo Colour Code: %code%
echo My Calculator -
echo Just Type In Your problem Sum And press Enter -
echo Add=+ Subtract=- Multiply=* Divide=/ previous answer=ans -
echo Note: Answers For Division Are Rounded Off -
set /p prob=
set /a ans=%prob%
echo Previous Answer: %Ans%
Step 2: Test It Out!
test it out if there are any problems just comment, feel free to change it just please give me credit. also thanks to my friend for helping me with the codes. hope it works and have fun! if it doesn't work post a comment about the problem and code and ill show see if i can find the problem, or if my friend can.