CBSE Class 11 Computer Science
Question 162 of 173
Data Handling — Question 14
Back to all questions 14
Question Question 14
Write a program to generate 3 random integers between 100 and 999 which is divisible by 5.
Solution
import random
a = random.randrange(100, 999, 5)
b = random.randrange(100, 999, 5)
c = random.randrange(100, 999, 5)
print("Generated Numbers:", a, b, c)Output
Generated Numbers: 885 825 355