

InterviewSolution
Saved Bookmarks
1. |
Write a program that accept 2 number from the user and check whether number is positive Or negative |
Answer» print("POSITIVE OR NEGITIVE")x=float(input("\\n\\t\\tENTER THE NUMBER WHICH YOU WANT TO NOW :"))if x>0: print("\\n","so",x,"is the positive number")elif x==0: print(x,"is 0") else: print("\\n","so",x,"this is negitive number",)<br>print("POSITIVE OR NEGITIVE") x=float(input("\\n\\t\\tENTER THE NUMBER WHICH YOU WANT TO NOW :"))if x>0: print("\\n","so",x,"is the positive number")elif x==0: print(x,"is 0") else: print("\\n","so",x,"this is negitive number",)print("POSITIVE OR NEGITIVE")x=float(input("\\n\\t\\tENTER THE NUMBER WHICH YOU WANT TO NOW :"))if x>0: print("\\n","so",x,"is the positive number")elif x==0: print(x,"is 0") else: print("\\n","so",x,"this is negitive number",)print("POSITIVE OR NEGITIVE")x=float(input("\\n\\t\\tENTER THE NUMBER WHICH YOU WANT TO NOW :"))if x>0: print("\\n","so",x,"is the positive number")elif x==0: print(x,"is 0") else: print("\\n","so",x,"this is negitive number",)print("POSITIVE OR NEGITIVE")x=float(input("\\n\\t\\tENTER THE NUMBER WHICH YOU WANT TO NOW :"))if x>0: print("\\n","so",x,"is the positive number")elif x==0: print(x,"is 0") else: print("\\n","so",x,"this is negitive number",)print("POSITIVE OR NEGITIVE")x=float(input("\\n\\t\\tENTER THE NUMBER WHICH YOU WANT TO NOW :"))if x>0: print("\\n","so",x,"is the positive number")elif x==0: print(x,"is 0") else: print("\\n","so",x,"this is negitive number",) | |