mirrored_repositories/SMIT-Flutter
/*
Q.22: Given a map representing a shopping cart with keys as product names and values as quantities, 
write Dart code to check if a product named "Apple" exists in the cart. 
Print "Product found" if it exists, otherwise print "Product not found".
*/
void main() {
  Map<String, int> shoppingCart = {
    'Banana': 2,
    'Orange': 3,
    'Apple': 5,
    'Mango': 1,
  };

  String productName = 'Orange';

  if (shoppingCart.containsKey(productName)) {
    print("Product found");
  } else {
    print("Product not found");
  }
}
