Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 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. using Unit4.BucketLib;
  7.  
  8. namespace ConsoleApp2
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14.  
  15. int x;
  16. string Name;
  17. Bucket[] b = new Bucket [6];
  18. for (int i = 0; i < b.Length; i++)
  19. {
  20. Console.WriteLine("Enter Capicty");
  21. x = int.Parse(Console.ReadLine());
  22. Console.WriteLine("Enter Name");
  23. Name = Console.ReadLine();
  24. b[i] = new Bucket(x,Name);
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement