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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
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