Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Pizzas & List of Tuples
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { using Pizza=Tuple; using PizzaOrders=List<Tuple<int,string,int>>; // Table,Flavor,Quantity public class Program { public static void Main(string[] args) { string orderHeader="(Table,Flavor,Quantity)\r\n"; PizzaOrders pizzaOrders=new PizzaOrders(){ Pizza.Create(13,"Margherita",3), Pizza.Create(6,"Mushroom",7), Pizza.Create(13,"Margherita",9), Pizza.Create(21,"Ham&Egg",5), Pizza.Create(13,"Margherita",2), Pizza.Create(6,"Mushroom",4), Pizza.Create(13,"Onion",8), Pizza.Create(13,"Margherita",1), Pizza.Create(21,"Chicken",2), Pizza.Create(1,"Brasil (medalha de ouro) 3×0 Itália",10), }; pizzaOrders.Sort(); pizzaOrders.ForEach(x=>{Console.WriteLine(orderHeader+x);orderHeader=string.Empty;}); } } }
run
|
edit
|
history
|
help
0
Nuts
useful
Program to implement RamaKrishna
Unirest
Fiddling around
Try-Catch-TaskRun
2.2 gz
Evaluating a Mathematical expression in a string in C#
Min Max Sum Avg
((((STReaming))))%^%% The 2022 RBC Canadian Open Golf PGA Tour event