We only learned just the basics so I want to keep it as simple as possible
Here's the code I wrote so far:
"public class Degrees
{
public static void main (String [] args)
{
int DegreesC, DegreesF;
Scanner keyboard = new Scanner (System.in);
System.out.println("Enter a temperature in degrees Fahrenheit:");
DegreesF = keyboard.nextInt( );
DegreesC = 5 * (DegreesF - 32)/9;
System.out.println(DegreesF + "degrees Fahrenheit =");
System.out.println(DegreesC +"degrees Celsius.");
}
}
"
I'm getting errors when I try to compile
thanks
Here's the code I wrote so far:
"public class Degrees
{
public static void main (String [] args)
{
int DegreesC, DegreesF;
Scanner keyboard = new Scanner (System.in);
System.out.println("Enter a temperature in degrees Fahrenheit:");
DegreesF = keyboard.nextInt( );
DegreesC = 5 * (DegreesF - 32)/9;
System.out.println(DegreesF + "degrees Fahrenheit =");
System.out.println(DegreesC +"degrees Celsius.");
}
}
"
I'm getting errors when I try to compile
thanks