Karan generates 5-digit invoice numbers for his customers. The format is:
Write a program that, given a 5-digit invoice number, outputs:
Hint: Use integer division (//) and modulus (%) to extract the digits. To convert the category digit to 1-3, subtract 6.
The program should prompt:
Enter the invoice number:
Invoice sequence: first4
Customer category: category
Input:
19307
Output:
Invoice sequence: 1930
Customer category: 1