HOW TO MAKE A CALCULATOR IN NOTEPAD
The following code will make a calculator using notepad jst copy the below given code to notepad :
@echo off
title Calculator by ur name
color bc
color bc
:top
echo
echo -Welcome to HRISHI ' S Calculator
echo - JST ENTER YOUR SUM HERE
echo
echo Enter your operand
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo
pause
cls
echo Previous Answer:
%ans%
goto top
pause
exit
Save it as calculator.bat
The following code will make a calculator using notepad jst copy the below given code to notepad :
@echo off
title Calculator by ur name
color bc
color bc
:top
echo
echo -Welcome to HRISHI ' S Calculator
echo - JST ENTER YOUR SUM HERE
echo
echo Enter your operand
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo
pause
cls
echo Previous Answer:
%ans%
goto top
pause
exit
Save it as calculator.bat
No comments:
Post a Comment