0
I donât understand what I did wrong pls explain
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc= new Scanner(System.in); int boil =sc.nextInt(); if(temp>=100){ System.out.println("Boiling"); } else{ System.out.println("Not boiling"); } } }
2 RĂ©ponses
+ 1
What is temp there?
You declared 'boil', but not using..
0
You declare boil ad ur input variable
But using temp in the code
There is no temp daclared
To correct this code
You have to change it tl temp instead of boil