Saturday, July 13, 2013

【 Create Calculator In Command Prompt 】



Code :-

@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

Copy Above Code and Paste it in Notepad And Save It as anyname with Bat extension.
Ex : calculator.bat
Photo: 【 Create Calculator In Command Prompt 】 Code :- @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 Copy Above Code and Paste it in Notepad And Save It as anyname with Bat extension. Ex : calculator.bat