☰ Contents · Computing

Logical expression practice and the if…else operator

Lessons 36–37 · 2 lessons · M. R. Fayziyeva, D. M. Sayfurov, N. S. Xaytullayeva. Informatics and Information Technologies, Grade 9. “Nashriyot uyi Tasvir”, Tashkent, 2020
Answers are for parents and teachers.
1
Find the value of (5 > 2) and (7 < 3) or (1 == 1).
2
The air temperature t (a whole number) is typed. Write a program that prints “muz” (ice) if t is below 0 and “muz emas” otherwise.
3
Write a single print() that prints True if the typed number is a multiple of 3 and False otherwise.
4
How is the condition written that checks whether a rectangle with sides a and b is a square?