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

how to do this?


string bookTitle = System.Console.ReadLine("Enter a book title: "); 

    System.Console.Write("Enter a book title: ");
System.Console.ReadLine(bookTitle );

1 Answer

Steven Parker
Steven Parker
205,566 Points

The instructions say "Use the System.Console.Write() method to print "Enter a book title: " to the console.", but you're passing that string to a call to "ReadLine" first (which takes no arguments).

When you get to task 2, you'll want to assign the new variable from the input after the "Write" statement.