Computer Science

Write a program to generate 3 random integers between 100 and 999 which is divisible by 5.

Python

Python Data Handling

42 Likes

Answer

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

Answered By

22 Likes


Related Questions