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