Untitled
unknown
plain_text
9 months ago
541 B
4
Indexable
// You have a fever if your temperature is above 100 and otherwise prints or you haven't a fever.
import java.util.*;
public class Question_2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Please enter your temp: ");
double temp = sc.nextDouble();
if (temp > 100){
System.out.println("You have afflicated with fever");
}else {
System.out.println("You are out of illing");
}
}
}
Editor is loading...
Leave a Comment