Guest User

Untitled

a guest
Oct 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. int amount;
  4. int value;
  5.  
  6. Console.WriteLine("Amount: ");
  7. amount = Convert.ToInt32(Console.ReadLine());
  8. Console.WriteLine("values: ");
  9. value = Convert.ToInt32(Console.ReadLine());
  10.  
  11. int[] tomb = new int[amount];
  12. for (int i = 0; i < amount; i++)
  13. {
  14. tomb[i] = Convert.ToInt32(Console.ReadLine());
  15. }
  16. Console.WriteLine(".....");
  17. for (int i = 0; i < amount; i++)
  18. {
  19. Console.WriteLine(tomb[i]);
  20. }
  21. Console.ReadKey();
  22. }
  23.  
  24. Console.WriteLine("values: ");
  25. value = Convert.ToInt32(Console.ReadLine());
Add Comment
Please, Sign In to add comment