Hey, I'm working on a project in C# and whenever I try to input an integer it displays the entered amount three times!

using System; 

namespace Welcome
{
   
   public class MyProgram
   {
       public static void Main(string[] args)
       {
                       int choice = 0;
			
			Console.WriteLine ("Please enter a number:");
			
			choice = Convert.ToInt32(Console.ReadLine());
			Console.Write(choice);
       }
    }
}

Any suggestions?

Thanks :)!

It's going to display it 2 times:
1) When you type it in the console echos your input, so you can see what you have typed
2) When Console.Write() line executes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.