0

The code is correct but it is showing bugs

import java.util.Scanner; public class Boiled { public static void main(String[] args) { Scanner sc=new Scanner (System.in); int T=sc.nextInt(); if(T>=100) { System .out.println("Boiled"); } else{ System.out.println("notboiled"); } } }

25th Jul 2023, 10:18 AM
Nagireddy Poojitha
Nagireddy Poojitha - avatar
4 odpowiedzi
+ 4
Check your output. I'm pretty sure "notboiled" is NOT a correct response
25th Jul 2023, 10:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Introduction to java Q:To check if the water is boiled or not
25th Jul 2023, 10:18 AM
Nagireddy Poojitha
Nagireddy Poojitha - avatar
0
Ok
25th Jul 2023, 6:58 PM
Nagireddy Poojitha
Nagireddy Poojitha - avatar
0
I got output
25th Jul 2023, 6:58 PM
Nagireddy Poojitha
Nagireddy Poojitha - avatar