In this challenge, you’ll write code that will combine literal and variable values into a single message.
Challenge: Display literal and variable values
- Select all of the code in the .NET Editor then select the Delete or Backspace key to delete it.
- Store the following values in variables:
- Bob
- 3
- 34.4
Console.Write()commands to form a complete message. - Write code in the .NET Editor to display the following message:OutputCopy
Hello, Bob! You have 3 messages in your inbox. The temperature is 34.4 celsius.No matter how you do it, your code should produce the specified output.
Whether you get stuck and need to peek at the solution or you finish successfully, continue to view a solution to this challenge.
Leave a Reply