Tuesday, 23 July 2019

Question posted on Instagram as Code Hub

Finally, we present before you all the code. The code to find the number of handshakes if you are provided with the number of people. 
Question
Question Posted on Instagram
Its a simple code in which we used a counter variable 'c' to count the handshakes, two variables 'i' and 'j' for the iteration . See the code below . If you all have any query regarding the code or the question let us know it in the comment box.


Code 

Output
It would be very kind of you all , if you like this and share this as much as you can. We will be posting  a lot of questions so stay tuned...