Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Console I/O Receiving Input

the code is not taking the input....after executing

class Program { static void Main() { System.Console.Write("Enter the time of excercise: " );

  string entry= System.Console.Readline ();
}

}

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi prasad! You're doing fine, but you have a tiny typo. You've typed Readline instead of ReadLine. Note the capital "L" in the second version.

Hope this helps! :sparkles:

Also, make sure you save before running the mcs Program.cs command. If you do not, it will compile the previous save.

thanks a lot Jennifer....it worked

Matthew Stevenson
Matthew Stevenson
4,877 Points

Thank you! This answer helped me too.

Nassir ALGhumlasi
Nassir ALGhumlasi
4,529 Points

Thanks Jennifer that's really help out.