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
Morae Q!
- Program to get dictionary items, use update module and items module.
- Regular expression allowing certain set of characters.
- Compute the Sum of Cosine Series.
- Find the Sum of Sine Series.
- Remove the Vowels from the string.
- Find All Non-Overlapping strings/characters using regular expressions .
- Check whether the given string is Panagram or not.
- Replacing strings using Regular Expression Regex.
- Check whether the given number is Strong number or not.
- Find the numbers divisible by a input numbers within the given range.
- Change the behaviour of the Regular Expression using flags.
- Find the exponentiation of a number.
- Find all prime numbers in a range using Sieve of Eratosthenes.
- Convert decimal equivalent into binary, hexadecimal and octal.
- Compute the area of a farmers field in feet.
- Compute time from number of days/hours to seconds.
- Precompiled patterns using Regular Expressions .
- Compute the price of the cake on the nth day.
- Compute the number of possible non-increasing arrays.
- Find the type of spinach using the calorie value.