Tuesday, February 18

Fahrenheit to Celsius Program in java



Hi ALL,

Here I wrote a program for simple Fahrenheit  to Celsius in java.



/**
 *
 * @author Balamurgan M
 */

import java.util.Scanner;
public class fahrenheait_to_c {
    public static void main(String arg[]){
        System.out.println("Enter the Fahrunheait value \t");
        Scanner in=new Scanner(System.in);
        int f=in.nextInt();
        double c=(5/9);
                c *=(f-32);
        System.out.println("Celcius value is "+ c);
        System.out.println(System.currentTimeMillis());
    }
}

No comments:

Post a Comment

Backup files to google drive using PHP coding

 Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...