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); }

28th Apr 2022, 1:20 AM
Julius Yamit
3 Answers
+ 1
Missing closing curly brace at end
28th Apr 2022, 3:31 AM
Raul Ramirez
Raul Ramirez - avatar
+ 1
add - public class FahrenheitToCelsius{ close - float celciusValue your forgot the ; missing an extra } at the end of document
28th Apr 2022, 3:40 AM
Chris Coder
Chris Coder - avatar
28th Apr 2022, 3:42 AM
Chris Coder
Chris Coder - avatar