int num = 10; Console.WriteLine(num);
float salary = 5000.50f; Console.WriteLine(salary);
char gender = 'M'; Console.WriteLine(gender);
bool isStudent = true; Console.WriteLine(isStudent);
string name = "John Doe"; Console.WriteLine(name);This code declares a string variable `name` and assigns the value "John Doe" to it. The value of the variable is then printed to the console. These examples are part of the C# language and do not require a package library.