Advertisement
NedyalkoKikov

DictionariesDeemos

Jun 7th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 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 DictionariesDemo
  8. {
  9. class DictionariesDeemos
  10. {
  11. static void Main()
  12. {
  13.  
  14. Dictionary<string, double> nums = new Dictionary<string, double>();
  15. nums["num0"] = 2.55;
  16. nums["num1"] = 3.14;
  17. nums["num2"] = 4.22;
  18. nums["num3"] = 50.22;
  19. foreach(var n in nums.Values)
  20. {
  21. Console.WriteLine(n);
  22. }
  23. }
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement