What is a better way to write the code below? Assume I\'m only interested in type int for exactly 5 variables. It\'s working fine, but it seems like there would be a cleaner way