rss
Twitter Delicious Facebook Digg Stumbleupon Favorites

Friday, October 7, 2011

A program that will read a float type value

class ValueRead{

  public static void main(String args[]){
       double i = 34.32;
System.out.println("Small Int. not greater than the no. : "+Math.ceil(i));
    System.out.println("Given Number : "+i);
System.out.println("Largest Int. not greater than the no. : "+Math.floor(i));
  }

0 comments:

Post a Comment

Powered by Blogger.