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"); } } }
2 Respuestas
+ 3
Your question?
https://www.sololearn.com/discuss/333866/?ref=app
+ 2
If you're not receiving all green ticks ✅️ comment out/remove your line
temp = 105;