Advertisement
OneTallor

Untitled

Mar 5th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. //Rextester.Program.Main is the entry point for your code. Don't change it.
  2. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text.RegularExpressions;
  8.  
  9. namespace Rextester
  10. {
  11. public class Program
  12. {
  13. public static void Main(string[] args)
  14. {
  15. int[] asd = new int[10];
  16. for (int j = 1; asd.Length; j+=2)
  17. {
  18. asd[j] = j;
  19. }
  20.  
  21. //kiiratás
  22. for (int x = 1; asd.Length; x++)
  23. {
  24. Console.Write("{0,3}",asd[x]);
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement