Java Blog

 
 
 
import java.io.*;
class  real
{
    public static void main(String args[]) 
    {
    float realno;
    int  smallint,largeint;
    String no;
    try{
    BufferedReader obj =new BufferedReader(new InputStreamReader(System.in));
    System.out.print(\"Enter Real No :  \");
    System.out.flush();
    no=obj.readLine();
    realno=Float.parseFloat(no);
    smallint=(int)realno;
    largeint=smallint+1;
    System.out.println(\"Small  Integer       Given Number          Largest Integer\");
    System.out.println(\"       \"+smallint+\"                 \"+realno+\"                 \"+largeint);
    }
    catch(Exception e)
    {}

    }
}