Programming Assignments:TY B.sc(computer application)

TY B.sc(computer application) Control Statements and Loops 1) Write a Python Program to Check if a Number is Positive, Negative or Zero def check_number(num): if num > 0: print(“The number is positive.”) elif num < 0: print(“The number is negative.”) else: print(“The number is zero.”) # Test the program with different numbers check_number(10) # Output: …

Programming Assignments:TY B.sc(computer application) Read More »