Professional Documents
Culture Documents
Meeting №7
Topic: Logical operators and selection statements
Task №2. The user enters two numbers. Display the smaller of these numbers.
Task №3. The user enters a number. To determine whether this number is positive, negative or
zero.
Task №4. The user enters two numbers. Determine whether these numbers are equal, and if not,
display them in ascending order.
1
Practicum 4
Course «C Programming Language»
Meeting №8
Topic: Logical operators and selection statements
Task 1: The user using the keyboard enters 5 student marks. Determine whether the student is
admitted to the exam. The student is admitted, if the average mark is 4 points or more.
Task 2: The user enters a number from the keyboard. If it is an even number, multiply it by
three, otherwise - divide by two. Display the result.
Task 3: Write a calculator program. The user enters two numbers and selects the arithmetic
operation. Display the result.