Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Lesenka
  8. {
  9. class Program
  10. {
  11. static string eblan(int n)
  12. {
  13. string a = "";
  14. for (int i = 0; i < n; i++) a += " ";
  15. return a;
  16. }
  17. static void Main(string[] args)
  18. {
  19.  
  20. int a = 0;
  21. do
  22. {
  23. a++;
  24. Console.Write(eblan(20-a) + a.ToString());
  25. Console.WriteLine();
  26. }
  27. while (a <20);
  28. Console.Read();
  29.  
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement