FivemStore

```c

include

// Define the structure for a product struct Product { char name[50]; float price; int quantity; };

// Function to calculate the total cost of a product float calculateTotalCost(struct Product product) { return product.price * product.quantity; }

int main() { // Declare and initialize a Product variable struct Product item; printf("Enter product name: "); scanf("%s", item.name); printf("Enter product price: "); scanf("%f", &item.price);