import java.io.*; class ConvertTemp { public static void main() throws IOException { InputStreamReader ir= new InputStreamReader(System. in ); BufferedReader br= new BufferedReader(ir); double c=0.0; double f; System.out.println( "Enter the Number: " ); f=Double.parseDouble(br.readLine()); c=(5/9)*(f-32); System.out.println( "The temperature in Centigrade is: " +c); } }
|
Search This Blog
Sunday, 5 February 2017
PROGRAM TO CONVERT TEMPERATURE (F TO C)
Subscribe to:
Post Comments (Atom)
Make a JAVA program for a Toystore. This program suggest the toy based on the inputs users gives like age , gender , etc
//editor used - IntelliJ IDEA package ToyStore; import javax.swing.*; import java.awt.event.*; import java.util.Scanner; //here you can edi...
-
1 121 12321 1234321 above is out put of the following program below the program class pattern_E { public static ...
-
import java.io.*; class bookfair { //instance variables String bname; double p; double np; bookfair() { bname=...
No comments:
Post a Comment