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