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

Ankit Biswas
Ankit Biswas
280 Points

Print variable in to the screen.

Use Console.WriteLine to print the contents of the firstName variable to the screen?

CodeChallenge.cs
string firstName=System.Console.ReadLine();
System.Console.WriteLine("firstName");

1 Answer

Afrid Mondal
Afrid Mondal
9,508 Points

Dear Ankit, I think the issue is: you are passing firstName as string

string firstName=System.Console.ReadLine();
System.Console.WriteLine(firstName);