Quick actions

cmd+k|ctrl+k

Navigation

Languages

ex32_pyfml.py

Snippet info

Language

Python

Visibility

public

Author

cuongquach.learning

Created

2016-09-19T16:30:32Z

Updated

2016-09-20T03:00:00Z

# Exercise 3.2
# Pyfml course
# Name : Quach Chi Cuong
# Glot.io : https://glot.io/snippets/eilha1wgut
# Requirement : - input: mot so nguyen
# - output: in ra man hinh:
# Neu số < 0: this is negative number
# Neu số = 0: this is zero
# Neu số > 0: this is positive number

## Nhap input la so nguyen
input = 0

## Kiem tra dieu kien if tuong ung.
if input < 0:
	print('This is a negative number')
elif input == 0:
	print('This is zero')
elif input > 0:
	print('This is positive number')
INFO