For loop: number invoices
A for loop has three parts: a start, a test, and a step.
Your task
Use a counting for loop to number three invoices, then run the loop again with zero invoices.
Integer invoiceCount = 3;
Integer numbered = 0;
// Case A: number three invoices
// Case B: no invoices this time
invoiceCount = 0;
numbered = 0;Requirements
Invoice: INV-1,Invoice: INV-2,Invoice: INV-3should be printed in orderNumbered count: 3should be printedZero count: 0should be printed- for loop should be used that counts up to
invoiceCount - for loop should be run again for Case B
INV-1should be built from the counter