SquareRoot Finder by Tri Alliance7th Sep 2007 22:09
|
---|
Summary This program is for finding the square root of any number you type in. Description It's only eleven lines long (there are no remarks in the code, but it's pretty easy to figure out). Just type a number, and press enter like it says on the screen when you run the program. This program is especially great for finding exact square roots for math and physics equations to use in your code. The only problem is, you cannot copy and paste the number to a program like Microsoft Word. There is a way arround this though. Most of the time there is a button on the keyboard that says "Prt Scr" (which means to print the screen). This button will take a screenshot of the entire screen, and you must paste the image into a paint program to see it. Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com Set Window size 800,600:Set Window Title "Square Root Finder" ink RGB(255,0,0),RGB(255,0,0) Do Input "Type a number and enter to find a square root.",num cls Print SQRT(num) If escapekey()=1 End Endif sync Loop |