Boiling Water :- What am I missing here? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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