© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
34 replies
Martindb

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.");
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Graphics.DrawLine and .DrawPolygon doesn't work properly
C#CC# / help
4y ago
❔ Filter doesn't work
C#CC# / help
3y ago
✅ I'm trying to work with Timer class but something doesn't work properly..
C#CC# / help
16mo ago
✅ Enum comparison doesn't work.
C#CC# / help
17mo ago