Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27446

Re: Can someone determine the output of this?

From Lars Enderin <lars.enderin@telia.com>
Newsgroups comp.lang.java.programmer
Subject Re: Can someone determine the output of this?
Date 2014-02-03 12:20 +0100
Organization albasani.net
Message-ID <52EF7B8A.3050002@telia.com> (permalink)
References <jYOdnUmn99dqv3LPnZ2dnUVZ_q6dnZ2d@giganews.com>

Show all headers | View raw


2014-02-03 06:02, securitygates skrev:
> public class Weather
> {
> 	public static void main(String [] arguments)
> 	{
> 		float fah=86;
> 		System.out.println(fah + "degrees Farenheit is...");
> 		// To convert Farenheit into Celsius
> 		// Begin by subtracting 32
> 		fah = fah-32;
> 		// Divide the answer by 9
> 		fah = fah/9;
> 		// Multiply that answer by 5
> 		fah = fah*5;
> 		System.out.println(fah + "degrees Celsius\n");
> 		
> 		float cel=33;
> 		System.out.println(cel + "degrees Celsius is...");
> 		// To convert Farenheit into Celsius
> 		// Begin by subtracting 32
> 		cel = cel*9;
> 		// Divide the answer by 9
> 		cel = cel/5;
> 		// Multiply that answer by 5
> 		cel=cel+32;
> 		System.out.println(cel + "degrees Farenheit");
> 	}
> }

I can see that you are extremely sloppy, re-using the comments from the
first part without a thought. Your signature sucks, too.

-- 
Lars Enderin

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can someone determine the output of this? securitygates <bradyjimbsg@gmail.com> - 2014-02-02 23:02 -0600
  Re: Can someone determine the output of this? Lars Enderin <lars.enderin@telia.com> - 2014-02-03 12:20 +0100
    Re: Can someone determine the output of this? lipska the kat <lipskathekat@example.com> - 2014-02-03 13:15 +0000
  Re: Can someone determine the output of this? lipska the kat <lipskathekat@example.com> - 2014-02-03 13:36 +0000
  Re: Can someone determine the output of this? Roedy Green <see_website@mindprod.com.invalid> - 2014-02-03 09:18 -0800
  Re: Can someone determine the output of this? Lew <lewbloch@gmail.com> - 2014-02-03 16:37 -0800

csiph-web