the integer temperature in Celsius as input and output "Boiling" if the temperature is >= 100.Output "Not boiling" if not'' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

the integer temperature in Celsius as input and output "Boiling" if the temperature is >= 100.Output "Not boiling" if not''

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int temp=sc.nextInt(); temp=105; if(temp>=100) { System.out.println("Boiling"); }else { System.out.println("Not Boiling"); } } }

24th Jan 2023, 3:23 PM
Ambelye Cherkos
Ambelye Cherkos - avatar
2 Answers
24th Jan 2023, 3:44 PM
Jayakrishna 🇮🇳
+ 2
If you're not receiving all green ticks ✅️ comment out/remove your line temp = 105;
24th Jan 2023, 9:11 PM
Ausgrindtube
Ausgrindtube - avatar