Munsab Ali Warsak
براے مہر بانی نیچے رجسٹریشن کلک کریں اور اگر آپ کا ریجسٹریشن ہوئی ہیں تو لوگ ان کلک کریں ، آپ سے گزارش ہیں کہ رجسٹریشن کرنے کے بعد لوگ ان ہوجائے - مدیر اعلٰی منصب علی
Munsab Ali Warsak
Would you like to react to this message? Create an account in a few clicks or log in to continue.

calculator for Dos

Go down

calculator for Dos  Empty calculator for Dos

Post by Munsab Ali on Thu Nov 20, 2014 3:26 pm

select All and copy then past to notepad 
CODE


@echo off
title calculator
color 0A
:main
echo.
echo ---------------------------
echo.
echo WELCOME %USERNAME% to
echo.
echo Cal'C Ver 0.2 by Munsab
echo.
echo ---------------------------
echo.
echo /////////////////////////////////////
echo Your previous Calulated number was %sum%
echo ////////////////////////////////////
echo.
echo Enter the specified alphabet to continue..
echo.
echo a)Addition
echo.
echo b)Subtraction
echo.
echo c)Divison
echo.
echo d)Multipication
echo.
echo e)Square, Cube or any power (by Prof.Pickle)
echo.
set /p do=Value.
if %do%== a goto add
if %do%== A goto add
if %do%== b goto sub
if %do%== B goto sub
if %do%== c goto div
if %do%== C goto div
if %do%== d goto mul
if %do%== D goto mul
if %do%== e goto power1
if %do%== E goto power1
echo.
cls
echo Invalid value = %do%
echo.
pause
cls
goto main

:add
cls
echo ADDITON
echo.
set /p no1="num1. "
echo       +
set /p no2="num2. "
set /a sum=no1+no2
echo ------------
echo %sum%
echo.
pause
cls
goto main


:sub
cls
echo SUBTACTION
echo.
set /p no1="num1. "
echo       -
set /p no2="num2. "
set /a sum=no1-no2
echo ------------
echo %sum%
echo.
pause
cls
goto main


:div
cls
echo DIVISON
echo.
set /p no1="num1. "
echo       /
set /p no2="num2. "
set /a sum=no1/no2
echo ------------
echo %sum%
echo.
pause
cls
goto main


:mul
cls
echo MULTIPLICATION
echo.
set /p no1="num1. "
echo       *
set /p no2="num2. "
set /a sum=no1*no2
echo ------------
echo %sum%
echo.
pause
cls
goto main

:power1
cls
echo Square, Cube or any power (by Munsab)
echo.
echo Select the number
set /p num=
cls
echo Select the power
set /p pow=
set /a pow=%pow%+1
set ans=%num%
cls
:power2
set /a pow=%pow%-1
if %pow% LSS 1 goto next
set /a ans=%ans%*%num%
goto power2
:next
echo Your answer is %ans%
echo.
echo To open https://munsab.forumur.net/ instrutable's profile type 'I'. Type 'M' to goto main
set /p open=
if %open%== I start https://munsab.forumur.net/
if %open%== i start https://munsab.forumur.net/
if %open%== m goto main
if %open%== M goto main
goto main


Save it calcu.bat

_________________
منصب علی ورسک
 calculator for Dos  Dpaolu3d098
Munsab Ali
Munsab Ali
Admin
Admin

Monkey
1013
Join date/تاریخ شمولیت : 07.03.2014
Age/عمر : 40
Location/مقام : pakistan

https://munsab.forumur.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum