@echo
off
title Calc
:loop
cls
set /p first=First number:
echo.
echo Mark ( + - * / )
set /p mark=Mark:
echo.
set /p second=Second number:
set /a final=%first%%mark%%second%
echo.
echo %final%
pause
goto loop
:loop
cls
set /p first=First number:
echo.
echo Mark ( + - * / )
set /p mark=Mark:
echo.
set /p second=Second number:
set /a final=%first%%mark%%second%
echo.
echo %final%
pause
goto loop
Save it as learnfromzero.bat
0 comments:
Post a Comment