The switch and if-else both are selection statement and they both let you select an alternative out of given many alternative by testing an expression.
Learn C++ Programming fast and easy, find C++ Program Codes
Learn C++ Programming fast and easy, find C++ Program Codes