1. In your quiz you had a pseudo code like this which basically calculates the number of handshakes occurring among ‘n’

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1. In your quiz you had a pseudo code like this which basically calculates the number of handshakes occurring among ‘n’

Post by answerhappygod »

1. In your quiz you had a pseudo code like this which basicallycalculates the number ofhandshakes occurring among ‘n’ people if all of them shake handswith each other. The pseudocode was something like this one :(n << input)handshakes = 0for (k = n ; k >= 1 ; k = k-1){for (i = k-1 ; i >= 1; i = i-1){handshakes = handshakes + 1}print(f“Total number of handshakes are {handshakes}”)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply