class Book {
public string Title { get; set; }
public string Author { get; set; }
public string ISBN { get; set; }
public void DisplayInfo() {
Console.WriteLine($"Title: {Title}, Author: {Author}, ISBN: {ISBN}");
}
}
class Program {
static void Main(string[] args) {
Book myBook = new Book { Title = "C# Fundamentals", Author = "Dr. CSharp", ISBN = "123456" };
myBook.DisplayInfo();
}
}
using System;
namespace PleiadesAcademy
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, Universe! From Earth's College!");
}
}
}
bashCopy code
dotnet new console
bashCopy code
dotnet run