Important alert: (current site time 3/28/2015 11:31:50 AM EDT) They're finally here! Check out our new 7 Source Code CDs!

# Compute the Square and Square Root of the Number

Email
 Submitted on: 3/8/2007 10:21:51 AM By: Jake Rodriguez Pomperada Level: Beginner User Rating: Unrated Compatibility: Java (JDK 1.1), Java (JDK 1.2), Java (JDK 1.3), Java (JDK 1.4), Java (JDK 1.5) Views: 7922

The main purpose of this program is to teach beginners in Java how to use square root function of java in solving the square root and square of number. If you find this code useful kindly vote for it. Thanks and Happy Computing From Jake R. Pomperada :-D

code:
Can't Copy and Paste this?
 Terms of Agreement:    By using this code, you agree to the following terms...    You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.    You may link to this code from another website, but ONLY if it is not wrapped in a frame.  You will abide by any additional copyright restrictions which the author may have placed in the code or code's description. ``` //************************************** // Name: Compute the Square and Square Root of the Number // Description:The main purpose of this program is to teach beginners in Java how to use square root function of java in solving the square root and square of number. If you find this code useful kindly vote for it. Thanks and Happy Computing From Jake R. Pomperada :-D // By: Jake Rodriguez Pomperada // // Returns:It will display the square and square root values of the number starting from 0 to 25. // // Side Effects:There is no side effect about the source code. // //This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=5588&lngWId=2//for details.//************************************** // A Simple Program in Java that will compute // the values of 0 to 25 in terms of its // square and square root values. // // Written By: Jake Rodriguez Pomperada // March 7, 2007 Thursday 6:42 PM // // Langauge : Java class num { public static void main(String args[]) { int b=0; System.out.println("\n"); System.out.print("COMPUTE THE VALUES OF (0 AND 25) " + "THEIR SQUARE AND SQUARE ROOT"); System.out.println("\n\n\n"); for (b=0; b <= 25; b++) { Double d2 = Math.sqrt(b); System.out.println(" " + b + ": " + b * b + ":"+ " " + d2); } } } // End of the Code ```

Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)