Question #345248

Create a struct named Product where its fields are code, description, and price. 



Expert's answer

struct Product
{
    public string code;
    public string description;
    public decimal price;
}

Product product;
product.code = "978-1-85702-879-9";
product.description = "The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography";
product.price = 19.99M;
LATEST TUTORIALS
APPROVED BY CLIENTS