letnumberofstudentsbenthentotalnumberofgreetingcards=n×(n−1)asn(n−1)=870orn(n−1)=30×29∴n=30
On the occasion of New Year each student of a class sends greeting cards to the others. If there are 20 students in the class, then the total number of greeting cards exchanged by the students is ______.