Martindb
Martindb
CC#
Created by Martindb on 10/7/2023 in #help
Compiler doesn't work properly
So i'm following the Microsoft course for beginners with C#. The assignment is letting the console show this message "Hello, Bob! You have 3 messages in your inbox. The temperature is 34.4 celsius." This is my code, when I try to run it the online course keeps processing and doesn't proceed. When I check my code in VS code it shows no errors, any help would be appreciated.
//Declaration of variables
string firstName = ("Bob");
int number = (3);
decimal otherNumber = (34.4M);

//Console commands
Console.Write("Hello, ");
Console.Write(firstName + "!");
Console.Write("You have" + number + "messages in your inbox");
Console.Write("The temperature is " + otherNumber + "celsius.");
//Declaration of variables
string firstName = ("Bob");
int number = (3);
decimal otherNumber = (34.4M);

//Console commands
Console.Write("Hello, ");
Console.Write(firstName + "!");
Console.Write("You have" + number + "messages in your inbox");
Console.Write("The temperature is " + otherNumber + "celsius.");
35 replies