# Write a program to print only even numbers between 0 to 100 using for loop for x in range(100): # Here Check if x is odd if x % 2 == 1: continue print(x) output:
# Write a program to print only odd numbers between 1 to 100 using for loop for x in range(100): # Here Check if x is even if x % 2 == 0: continue print(x) Output:
#Write a program to input any number and find out given number is positive or negative using nested if-else num = float(input("Enter any number: ")) if num >= 0: if num == 0: print("Given number is Zero") else: print("Given number is Positive Number") else: print("Given number is Negative Number") Output: