Program to demonstrate Mathematical Functions

class P
{
    public static void main(String args[])
    {
        double x= Math.floor(40.6);
        double y = Math.abs(40.6);
        System.out.println(" Value of x is ="+x+" and y is ="+y);

    }
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|