Hello friends in my last post HOW TO MAKE COMPUTER SPEAK WHAT YOU TYPE i mentioned the steps to make a .vbs file that will speak what you will type. Today we will learn to make a calculator. It’s very easy, we just need to type a code a need to save it in .bat format.
What is .bat ?
.bat is an extension of batch files. Batch file is a text file that contains number of command for a computer’s operating system.
To make a calculator follow the given steps…..
# open notepad or press windows key + R and in the box type notepad and press enter
# now copy the code given below and paste it in notepad
echo Add = +
echo Subtract = –
echo Divide = /
echo Multiply = *
echo Put your question here:
set /p equ=
set /a equ=!equ!
Now save this with .bat extension
Now you will find an icon like open it and you you will see a calculator like , you can perform your calculations in this
You may also like:-