Share

Code 2

Public

07 August 2017

Views: 15

import java.lang.Math; 
public class Test2 {
// TODO Auto-generated method stub
public static void main(String args[]){
double a = 20.61;
double b = 20.82;

System.out.println (Math.sqrt(a));
System.out.println (Math.ceil(a));
System.out.println (Math.round(a));
System.out.println (Math.floor(a));
System.out.println (Math.max(a,b));

}


}

pastelink.net/a3s4d56

Advertisement

Disable Third Party Ads