```
namespace himiC_sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            int x;
            do
            {
                Console.WriteLine("WELCOME TO THE SHOPPING CART!\nFollowing options are available to you:\n1. Add an item to cart\n2. Remove an item from the cart\n3. View the cart\n4. Checkout and Pay\n5. Exit");
                Console.WriteLine("please inter your chice");
                x = Console.Read();
                if (x == '1')
                {
                Console.WriteLine("Available items are:\n1.shirt\n2.pant\n3.shoes\n4.fish\n5.oil");
                Console.WriteLine("please inter the items name:");
                string j = Console.ReadLine();
                }
            } while (x != '5');
        }
   } 
}

```

but the program dont take input when i expected to take input like----

[![enter image description here](https://i.stack.imgur.com/mfmRZ.png)](https://i.stack.imgur.com/mfmRZ.png)

but it repeats my console.writeline() method in state of takeing input