(이)랑 is what we say in everyday conversation, it's informal Korean, shows your interest in getting along with the listener.
(와)과 is what we see in books, newspapers etc, we say it in an informal situation like when we give a speech in front of lots of people.