Batch Calculator

135

1

Posted in TechnologySoftware

Introduction: Batch Calculator

About: for questions email me at rwf4209@gmail.com i will be happy to help with any issues with batch programs you have

hello guys today Im going to show you how to create a batch calculator

the code is as follows

@echo off

:start

cls

echo put equation sign

set /p sign

cls

echo input number 1

set /p num1=

echo input number 2

set /p num2=

set /a num3=%num1%%sign%%num2%

echo answer: %num3%

echo -press any key to reset

timeout /t -1 >nul

goto :star

15 lines to a batch calculator :D

typing>>> * will do multiplication

typing>>> / will do division BUT if answer is not a whole number then it says 1

Share

    Recommendations

    • Make it Move Contest

      Make it Move Contest
    • Woodworking Contest

      Woodworking Contest
    • Casting Contest

      Casting Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    even better / less lines / faster:

    @echo off

    title Calculator

    echo Calculator

    :start

    set /p problem=

    set /a answer=%problem%

    echo %answer%

    goto start