Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lars Enderin Newsgroups: comp.lang.java.programmer Subject: Re: Can someone determine the output of this? Date: Mon, 03 Feb 2014 12:20:42 +0100 Organization: albasani.net Lines: 34 Message-ID: <52EF7B8A.3050002@telia.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net ktzrTBq4VF4Uym9iYK+j7I/8d29jOHERUOGL9/q/DH5S8Ue4GRw1socuVyBx+BXCGrDErqal2O7LBQNRoq40bA== NNTP-Posting-Date: Mon, 3 Feb 2014 11:20:46 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="ZTONfuldCgm1FVsKsP7AA+hEbhll3dotXV/PllvPz4CZn5MSwxY1a9ArhpfVEZBN9pnotzM634Mv2XSr8xELrX+waYyDJeDFQWxKIZhpBWG+pTLsDp4WGFZSh2agEfQE"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: Cancel-Lock: sha1:4Ree1rOHfqqijNv1i4Bd8VpirPo= Xref: csiph.com comp.lang.java.programmer:27446 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