Advertisement
rado84

FckingVS

Jun 7th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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 SmallShop
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. //goods array
  14. string[] goods = { "coffee", "water", "beer", "sweets", "peanuts" };
  15.  
  16. //cities array
  17. string[] cities = { "Sofia", "Plovdiv", "Varna" };
  18.  
  19. //prices array
  20. double[] prices = { 0.40, 0.45, 0.50, 0.70, 0.80, 1.10, 1.15, 1.20, 1.30, 1.35, 1.45, 1.50, 1.55, 1.60 };
  21. //indexes..........(.0..,..1..,..2..,..3..,..4..,..5..,..6..,..7..,..8..,..9..,..10.,..11.,..12.,..13..)
  22.  
  23. //quantity
  24. int quantity = int.Parse(Console.ReadLine());
  25.  
  26. //conditions
  27. if ((goods == "coffee") && (cities == "Sofia"))
  28. {
  29. Console.WriteLine(prices[2]);
  30. }
  31.  
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement