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++

solve this problem in c++ The Problem There are N people in

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!