Write a program to print negative Numbers in given range


Topic: Write a program to print negative Numbers in given range

Solution

start, end = -4, 19
for num in range(start, end + 1): 
    if num < 0: 
        print(num, end = " ") 
        



List all Python Programs