write a program whose input is two integers. output the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer
Python Program :
first_number = int(input("Enter First Number : "))
second_number = int(input("Enter Second Number : "))
for x in range(first_number, second_number, 5):
print(x)
Output
>> python main.py
Enter First Number : 23
Enter Second Number : 55
23
28
33
38
43
48
53
Enter Second Number : 55
23
28
33
38
43
48
53
0 Comments