Read the passage and answer the question:
"Global warming is causing polar ice caps to melt at an alarming rate. This not only threatens polar bear habitats but also contributes to rising sea levels worldwide. Scientists warn that if this continues, many coastal cities could be underwater by the end of the century."
What are the two main consequences of melting polar ice caps mentioned in the passage?