Conversion of farenhight temperature into Celcious in java

Saturday, March 21, 2009

import java.io.*; class celcius { public static void main(String args[])throws IOException { String f; float a,c; BufferedReader kol=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter Farenhight temparature :"); f=kol.readLine(); a=Float.parseFloat(f); double r=((float)a-32)/1.8; System.out.println("In Celsius it is ="+r); } }

0 comments:

Visitors

PlugIn.ws - Free Hit Counter, Web Site Statistics, Traffic Analysis

  © Blogger template Leaving by Ourblogtemplates.com 2008

Back to TOP