Program to calculate total number of handshakes made by people in a party.
Are you learning C++ programming? Finding difficulty in writing the program for a problem? On this page our ISC experts shall guide you with a detailed C++ program solution for your query.
Q.) Write a C++ program to calculate total number of handshakes made by people in a party. If n (Here user can assume any number like in a party if there were 30 people ) number of people at a party shook hands with each other. How many handshakes were there altogether?