Tech Study

Write a Python program to find postive or negative number

Introduction

I have used python 3.7 compiler for debugging purpose.. I have used python 3.7 compiler for debugging purpose.

num = float(input("Input a number: "))
if num > 0:
   print("It is positive number")
elif num == 0:
   print("It is Zero")
else:
   print("It is a negative number")

Result

Write a Python program to find postive or negative number
Write a Python program to find postive or negative number

TaggedWrite a Python program to find postive or negative number

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more