I am giving this code to help you all understand not to copy you can post any comment and queries I will return help as soon as possible, Copying of this code for any kind of assignment is strictly prohibited.
-------------------------
import java.util.Scanner;
public class faren
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
System.out.println("Input:");
String input;
double f,c;
input = scan.next();
f = Double.parseDouble(input);
System.out.println(f);
System.out.println(""+Integer.parseInt(input));
c = ((5*f)-(32*5))/9;
System.out.println(c);
System.out.println((int)c);
}
}
Lab1 - Part Three
Wednesday, June 18, 2008
Posted by Admin at 9:15 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment