Guest User

Untitled

a guest
May 27th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. int a=Convert.ToInt32(Console.ReadLine());
  2. for (int i = 1; i <= a; i++)
  3. {
  4. int sayi = i * (i + 1) / 2;
  5. Console.WriteLine(sayi);
  6. }
  7.  
  8. Console.ReadKey();
Add Comment
Please, Sign In to add comment