+ 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"); } } }
8 Answers
+ 4
int temp = sc.nextInt(); // you are using l(etter) instead of capital i in this. Use this
+ 2
Int temp = sc.nextInt(); correct
+ 1
Still not working? It's confusing replies...
+ 1
Why? What is the problem actually?
+ 1
here's how it works thanks to everyone who helped, thank you🙏💕
0
in short, it does not work, writes an error
0
Yes, it doesn't work
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");
}
}
}