input: Write a python function to compare two dictionaries and print whether common keys have the same values or not.
  assert compare_dictionaries({'a': 1, 'b': 2}, {'a': 1, 'b': 3})==None
  assert compare_dictionaries({'x': 10, 'y': 20, 'z': 30}, {'x': 10, 'y': 20, 'w': 40})==None
  assert compare_dictionaries({'p': 5, 'q': 15}, {'p': 5, 'q': 15, 'r': 25})==None
output: def compare_dictionaries(dict1, dict2):
      for key in dict1:
          if key in dict2:
              if dict1[key] == dict2[key]:
                  print(f"Key '{key}' has the same value in both dictionaries.")
              else:
                  print(f"Key '{key}' does not have the same value in both dictionaries.")