Помогите пожалуйста | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Помогите пожалуйста

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.print("Boiling"); } else{ System.out.print("Not boiling"); } } }

16th May 2023, 3:56 AM
Vladimir Habarov
Vladimir Habarov - avatar
8 Answers
+ 4
int temp = sc.nextInt(); // you are using l(etter) instead of capital i in this. Use this
16th May 2023, 4:36 AM
Jayakrishna 🇮🇳
+ 2
Int temp = sc.nextInt(); correct
16th May 2023, 5:04 AM
Vladimir Habarov
Vladimir Habarov - avatar
+ 1
Still not working? It's confusing replies...
17th May 2023, 7:28 AM
Jayakrishna 🇮🇳
+ 1
Why? What is the problem actually?
17th May 2023, 2:18 PM
Jayakrishna 🇮🇳
+ 1
here's how it works thanks to everyone who helped, thank you🙏💕
18th May 2023, 12:16 AM
Vladimir Habarov
Vladimir Habarov - avatar
0
in short, it does not work, writes an error
17th May 2023, 3:33 AM
Vladimir Habarov
Vladimir Habarov - avatar
0
Yes, it doesn't work
17th May 2023, 7:31 AM
Vladimir Habarov
Vladimir Habarov - avatar
0
import java.util.Scanner; public class Program { public static void main(String[] args) { //your code goes here Scanner sc = new Scanner(System.in); int temperature = sc.nextInt(); if(temperature >= 100) { System.out.println("Boiling"); } else { System.out.println("Not boiling"); } } }
18th May 2023, 12:15 AM
Vladimir Habarov
Vladimir Habarov - avatar