mirrored_repositories/SMIT-Flutter
/*
Q.19: Given a map representing a product with keys "name", "price", and "quantity", 
write Dart code to check if the product is in stock. 
If the quantity is greater than 0, print "In stock", otherwise print "Out of stock".
*/
void main() {
  Map<String, dynamic> product = {
    'name': 'Orange',
    'price': 1.99,
    'quantity': 0,
  };

  int quantity = product['quantity'];

  if (quantity > 0) {
    print("In stock");
  } else {
    print("Out of stock");
  }
}
