-
-
Save lgolubyev/29d8efafd276da74e51f08681458fb18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public record Food (string Name, double Price); | |
var foodList = new List<Food> | |
{ | |
new("🍎", 1.15), | |
new("🍌", 1.51), | |
new("🥥", 2.99), | |
new("🍋", 0.70), | |
new("🥑", 9.13), | |
new("🍄", 0.05), | |
}; | |
//How do me find the cheapest food? | |
// How do we find the most expensive food? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment