how to make pizza in csharp

Here's a simple recipe to make a pizza in C#:

main.cs
using System;

class MainClass {
  public static void Main (string[] args) {
    
    // Gather the required ingredients
    
    string pizzaBase = "pizza base";
    string tomatoSauce = "tomato sauce";
    string cheese = "cheese";
    string[] toppings = { "mushrooms", "peppers", "olives", "onions" };
    
    // Assemble the pizza
    
    Console.WriteLine("Assembling pizza...");
    Console.WriteLine($"Place {pizzaBase} on a baking tray.");
    Console.WriteLine($"Spread {tomatoSauce} over the {pizzaBase}.");
    Console.WriteLine($"Sprinkle {cheese} over the {tomatoSauce}.");
    
    foreach(string topping in toppings) {
      Console.WriteLine($"Add {topping} to the pizza.");
    }
    
    // Bake the pizza
    
    Console.WriteLine("Baking pizza...");
    Console.WriteLine("Bake at 200 degrees Celsius for 15 minutes.");
    
    // Enjoy the pizza!
    
    Console.WriteLine("Pizza is ready! Enjoy :)");
  }
}
935 chars
34 lines

Note that this is a very basic recipe and you can add more ingredients or steps to it to make it more complex and delicious.

gistlibby LogSnag