0
Why I can't submit it
/*JAVA program to convert Fahrenheit To Celsius*/ import java.util.Scanner; class FahrenheitToCelsius{ public static void main(String args[]) { float FahrenheitValue; float celciusValue // User Input Logic using Scanner class Scanner sc = new Scanner (System.in); System.out.println("\n Enter Fahrenheit Value: "); FahrenheitValue = sc.nextFloat (); // Logic to conver Fahrenheit to Celsius celciusValue = ((FahrenheitValue - 32)*5)/9; //equation to convert // display result System.out.println("\n Result Celsius Value is: "+celciusValue); }
3 ответов
+ 1
Missing closing curly brace at end
+ 1
add - public class FahrenheitToCelsius{
close - float celciusValue your forgot the ;
missing an extra } at the end of document