Question: solve this problem in c++ The Problem There are N people in a room. You have to select any 2 people from the room. In
solve this problem in c++

The Problem There are N people in a room. You have to select any 2 people from the room. In how many ways 2 people can be selected from N people? The Input Input contains a single integer N (25 N5109) per line till the end of file(EOF). The Output Print a single integer for every line of input, the answer of the problem in a separate line. Sample Input 4 9 17 Sample Output 6 36 136
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
