×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: MD Sabbir Hossain
Added: Jan 19, 2017 6:43 AM
Views: 8
Tags: root java
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package rootsquare;
  7.  
  8. /**
  9.  *
  10.  * @author sabbir
  11.  */
  12. public class RootSquare {
  13.  
  14.     /**
  15.      * @param args the command line arguments
  16.      */
  17.     public static void main(String[] args) {
  18.         // TODO code application logic here
  19.         double x = 5;
  20.         double y;
  21.         y=Math.sqrt(x);
  22.         System.out.println("Root of Y="+y);
  23.     }
  24.    
  25. }
  26.