Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Cake_Ingredients
- {
- class Program
- {
- static void Main(string[] args)
- {
- string product = Console.ReadLine();
- int counter = 0;
- while (product != "Bake!")
- {
- Console.WriteLine($"Adding ingredient {product}.");
- counter++;
- product = Console.ReadLine();
- }
- Console.WriteLine($"Preparing cake with {counter} ingredients.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement