Write the following code in notepad :
@echo off
title Batch Calculator by Abhinav... one stop solution
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator by ABHINAV one stop solution
echo --------------------------------------------------------------
echo.
set /p udefine=
set /a udefine=%udefine%
echo.
echo = %udefine%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %udefine%
goto top
pause
exit