0
Please help, it says there is no output, what to do?(Java)
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temp = sc.nextInt(); if(temp >= 100);{ System.out.println("Boiling"); }else{ System.out.println("Not boiling"); } } }
1 Answer
+ 3
Remove semi colon ; after if condition.