Skip to content
MathsGenie logo
Quick links
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Develop code

EasyMediumHard
123456789101112131415161718192021222324252627
Question 19

A retail company runs a special promotional event called a Super-Discount Year based on the current calendar year.

A year is classified as a Super-Discount Year if:

  • it can be exactly divided by 500
  • OR it can be exactly divided by 10, but not exactly divided by 100.

For example:

  • These years are Super-Discount Years: 1500, 2010, 2030, 2500.
  • These years are not Super-Discount Years: 1900, 2100, 2024.

A program is needed that will take a year as an integer input from the user, determine whether it is a Super-Discount Year or not, and output an appropriate message.

Write a program to solve this problem.

You can use the layout below to structure your code:

year = int(input("Enter a year: "))

# Write your code here
[6]

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code