Weight Converter: WAP to convert Gram into Kilogram and vice versa.
Write an interactive program to do the following operations by providing the choice using the switch statement:
1 - Add two numbers
2 - Subtract two numbers
3 - Multiply two numbers
4 - Divide two numbers
5 - Exit