Created
February 4, 2018 06:01
-
-
Save TranNgocMinh/f0ddfdde9341c9460eefcdc17c90af19 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
int i, S = 0; | |
Console.WriteLine("Nhap n = "); | |
int n = int.Parse(Console.ReadLine()); | |
for (i = 1; i <= n; i++) | |
S = S + i; | |
Console.WriteLine("Tong là:" + S); | |
Console.ReadKey(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment