Introduction: How to Make a Circle Area Finder With Command Prompt


hello guys, in this instructable i will give you the codes so you can type in a radius and find the area of the circle it belongs too! Huge thanks to my friend who made this from scratch!feel free to change it around but please dont re-post, and if you mention it in a instructable please give me credit.

Step 1: The Circle Area Finder!


to make this one open notepad copy and paste the code i give you and then save the file as a .bat

@echo off
title circle's area finder
color 0f
echo.
echo ____________________________________
echo.
echo Welcome To The Circle Area Finder!
echo First Choose The Colour You Want.
echo ____________________________________
echo.
pause
cls
color 0f
echo.
echo.
echo ___________________________________________________________________
echo.
echo Colour Changer, Type In The Colour Code You Want Then Press Enter.
echo.
echo ___________________________________________________________________
echo.
echo.
echo Colour Codes Are:
echo 0=black 8=gray
echo 1=blue 9=light blue
echo 2=green A=light green
echo 3=aqua B=light aqua
echo 4=red C=light red
echo 5=violet D=light violet
echo 6=yellow E=light yellow
echo 7=white F=bright white
echo.
set /p code=Colour Code:
color %code%
cls
goto top
:top
echo.
echo.
echo ___________________________________________________________________
echo To Use Type In The Radius Of Your Circle And Press Enter, Simple.
echo However Because cmd Does Not Pick Up Decimals Just Put The
echo Decimal Point To Digits From The End Of The Area Given.
echo Note: Radius's Higher Than 1000 Give The Wrong Answer,
echo and Answers Are Not Exact Because Pi Is Rounded To
echo 2 Decimal Places,(This May Make A Big Difference In Big Numbers).
echo ___________________________________________________________________
echo.
set /p ans=Radius:
if %ans%==hello echo Why Hello To You Polite Person!
set /a sqr=%ans%*%ans%
set /a area=%sqr%*314
echo Area = %area%
pause
cls
echo Previous Area: %area%
goto top

Step 2: All Done!

now your all done test it out! if there are any problems just post a comment and ill try to see whats wrong im also making a sphere volume calculator so keep checking for it!