can someone explain how the highest and lowest works in the if statement? and what happen when we use cin.sync()? it works but i dont know how it works.
using