- Ask the user for their age and determine who they are: a child (0–12), a teenager (12–18), an adult (18–60), or a retiree (60–...).
- Ask the user for a year and check whether it is a leap year or not. A leap year is either a multiple of 400 or 4, and not a multiple of 100.
- Ask the user for the purchase amount and output the discount price: from 200 to 300 – the discount will be 3%, from 300 to 500 – 5%, from 500 and above – 7%.
- Ask the user 3 questions, each question has 3 answers. For each correct answer, 2 points are awarded. After the questions are over, output the number of scored points.
- Ask the user for a number and determine whether it is positive, negative, or zero.
- Ask the user for their age and check the correctness of the entered data (0–120 years old).
- Ask the user for time (hours, minutes, seconds) and check the correctness of the entered data.
- Ask the user for month number and display its name.
- Ask for 2 numbers and output the greater one.
- Ask for 1 number and check if it is a multiple of 5.
- Ask the user for name of the planet. If the user enters "Earth" or "earth", then output "Hello, Earthman!", otherwise, output "Hello, alien!"
- Calculate the sum of all numbers in a range specified by the user
- Ask the user for 10 numbers and calculate how many of them are positive, negative, and zeroes.
- Ask the user to solve this "2 + 2 * 2" until they calculate it correctly
- Divide 1000 by 2 until you get a number that is less than 50. Output this number and the amount of divisions.
- Display all numbers from 1 to 100, which are multiples of the number specified by the user.
Practical Assignment