Create a variable ‘temp’ and assign the value in Celsius. Display the message ‘It’s extremely hot day today!’ if the temperature is greater than 40oC otherwise, displays ‘It’s not too hot!’
Answers
Answer:
Python 3 Code:
**********************************************************************************************
temp = 10
#change the hashtag to ask the user to input and remove line1 statement
#temp = eval(input("Enter temperature in celsius:"))
if temp> 40:
print("It is very hot today!")
else:
print("Its not too hot")
************************************************************************************************
THANK YOU !!
MARK AS BRAINLIEST IF YOU ARE SATISFIED :D
In java
import java.util.Scanner
public static void main(String[] args) {
Scanner sc = new Scanner(system.in);
int temp = sc.nextInt();
if(temp>40) {
System.out.println("It's extremely hot day today");
} else {
System.out.println("It's not too hot");
}
}
Hope u like this!