+ 2

Boiling Water :- What am I missing here?

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

29th May 2023, 1:14 PM
Death Beliver
Death Beliver - avatar
4 Respostas
+ 2
Mirielle Wow! You have a really quick eye! 🛐😁
30th May 2023, 11:19 AM
Евгений
Евгений - avatar
+ 1
Correct code import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temp = sc.nextInt(); // Corrected method name if(temp>=100) { System.out.println("Boiling"); }else{ System.out.println("Not boiling"); } } }
19th Feb 2024, 6:07 AM
Irfan Alam
Irfan Alam - avatar
0
int temp = sc.nextInt(); // Corrected method name
19th Feb 2024, 6:08 AM
Irfan Alam
Irfan Alam - avatar
0
I guess Mirielle was removed from the platform with all their answers. :(
19th Feb 2024, 5:28 PM
Евгений
Евгений - avatar