Program: num = float(input("Enter any Number:") if num < 0: print("Number: ",-num) else: print("Numb...
Read More
3 Program to check if a Number is positive, negative or zero in Python
Program: num = int(input("Enter any Number:")) if num < 0: print("Number is Negative") elif num > 0: ...
Read More
2 Program to check year is Leap Year or not in Python
Program: num = int(input("Enter any year:")) if num % 4 == 0: print(num ,"Year is Leap Year") else: pri...
Read More
Subscribe to:
Posts (Atom)