Quick actions

cmd+k|ctrl+k

Navigation

Languages

ex37_pyfml.py

Snippet info

Language

Python

Visibility

public

Author

cuongquach.learning

Created

2016-09-19T16:42:52Z

Updated

2016-09-19T16:59:36Z

# Exercise 3.7
# Pyfml course
# Name : Quach Chi Cuong
# Glot.io : https://glot.io/snippets/eilhmanb3q
# Requirement : 
# Xet cac so nguyen duong < 100, in ra cac so chia het cho 5 theo dang:
# 5 == 1 * 5 
# 10 == 2 * 5 
# 15 == 3 * 5 

# Tao 1 list tu 1 -> 100
lst = range(1,101)

# Vong lap for xu ly tu 1 -> 100
for number in lst:
	if number % 5 == 0:
		print(number,'==',int(number / 5),'* 5')
INFO