How to make program to check temperature | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make program to check temperature

If the temperature is between 36.1 and 36.9 print "ok" If not print "not ok"

4th Nov 2020, 4:37 PM
vaibhav
vaibhav - avatar
4 Answers
+ 2
Please just tell me how to do it like formula
4th Nov 2020, 4:57 PM
vaibhav
vaibhav - avatar
+ 7
Are you telling us you can't even do that simple thing? Also mention the language name in tags
4th Nov 2020, 4:38 PM
Abhay
Abhay - avatar
0
well, if i wanna make that program. i would use if statements. and also do it yourself.
4th Nov 2020, 4:38 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
Take the values into a double or float type variables. And learn about if-else block and use here. Also learn about relational operators.. All it takes a 15 mins maximum. Edit : vaibhav https://www.programiz.com/cpp-programming/relational-logical-operators
4th Nov 2020, 8:48 PM
Jayakrishna 🇮🇳