Please help, it says there is no output, what to do?(Java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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"); } } }

10th Jan 2023, 9:31 AM
Олексій Харлінський
Олексій Харлінський - avatar
1 Answer
+ 3
Remove semi colon ; after if condition.
10th Jan 2023, 9:38 AM
Jayakrishna 🇮🇳