I don't know why this code isn't working. It only returns T4741 no matter what I enter.
EDIT: This is the original problem
The office furniture company in Program 1 wants another program to generate inventory code. They sell office chairs and tables in three colors. All inventory codes consist of 5 characters. If the product is a chair, the first three characters are “C47”. If the product is a table, the first three characters are “T47”. The last two characters are used to code color: “41” for red, “25” for black” and “30” for green. Write a program to do the following. First ask the user to enter type of product (e.g. “Enter 1 for table or 2 for chair”). Then ask the user to enter color (e.g. “Enter 1 for red, 2 for black or 3 for green). Generate and display the inventory code based on the information entered by the user. For example, if the user chooses chair and red, the inventory code generated by the program should be “C4741”. If the user enters wrong type or wrong color, display “Invalid input”.