Created
February 4, 2018 06:03
-
-
Save TranNgocMinh/f88c356b828ce3fbf795d185e20bfdf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = int(raw_input("Nhap n = ")) | |
S = 0 | |
for i in range(1,n+1): | |
S = S + i | |
print "Tong là:",S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment