Multiple Layer a and b
Write a program to find the numbers divisible by a input numbers within the given range.
Input 1: Lower range
Input 2: Upper range
Input 3: Positive number a
Input 4: Positive number b
Output:
Numbers divisible by given input numbers a and b, within the specified range
a=int(input("Lower range= ")) b=int(input("Upper range= ")) c=int(input("Positive number A = ")) d=int(input("Positive number B = ")) print("\nNumbers divisible are") for i in range (a,b+1): if (i%c==0 and i%d==0): print(i)
INPUT_1:
Lower range= 1
Upper range= 50
Positive number A = 2
Positive number B = 5
OUTPUT:
Numbers divisible are
10
20
30
40
50
INPUT_2:
Lower range= 1
Upper range= 10
Positive number A = 1
Positive number B = 1
OUTPUT:
Numbers divisible are
1
2
3
4
5
6
7
8
9
10
ILLUSTRATION
![](http://www.fcukthecode.com/wp-content/uploads/2022/02/Screenshot-from-2022-02-07-11-51-14.png)