Results 1 to 4 of 4
  1. #1
    lalithalydia is offline Member
    Join Date
    Jan 2008
    Posts
    3
    Rep Power
    0

    Default Fahrenheit to celsius

    Dear friends,

    pls write me a program to convert the given temperature in fahrenheit to celsius using following conversion formula

    f-32
    C= ____
    1.8

    thanks,
    lalitha

  2. #2
    jelly's Avatar
    jelly is offline Member
    Join Date
    Jan 2008
    Location
    Somerset, UK
    Posts
    46
    Rep Power
    0

    Default

    That's not the way it works here. The idea is that you try to solve the problem and then people help when you get stuck. Try to code your solution, post what you have done and the problems you get and you will find people will help.
    -- Hope that helps

  3. #3
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    9

    Default

    Lalitha, if you choose not to follow jelly's spectacular advice, what then is your purpose in programming? If you think getting others to solve your problem for you is the way it's done, you may want to choose another profession.
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  4. #4
    Cnu
    Cnu is offline Member
    Join Date
    Feb 2008
    Posts
    13
    Rep Power
    0

    Default

    class F2C
    {
    public static void main(String[] args)
    {
    Scanner s=new Scanner(System.in);
    System.out.println("Enter Farenheit");
    int f=s.nextInt();

    float c=(f-32)*1.8;
    System.out.println("Celcius:"+c);
    }
    }

Similar Threads

  1. farenheit to celsius
    By lalithalydia in forum New To Java
    Replies: 2
    Last Post: 02-02-2008, 09:44 AM
  2. Celsius Converter project
    By jpdamigaman in forum NetBeans
    Replies: 3
    Last Post: 11-14-2007, 01:20 AM
  3. Converts from Fahrenheit to Celsius
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •