The program to find the maximum number of handshakes is discussed here. Given a positive integer n, find out the total number of handshakes possible.
DESCRIPTION
It was Raj’s first day at school. His teacher Anu asked the students to meet every other student in the class and introduce themselves. The teacher asked them to do handshakes when they met each other.
If there are n number of students in the class then find the total number of handshakes made by the students.
Input format and output format:
Sample Input:
15
Sample output:
105
The program to find the maximum number of handshakes is given below
@@coding::1@@