Else print n lather and rinse numcycles times where n is


Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1, print "Too few.". If more than 4, print "Too many.". Else, print "N : Lather and rinse." num_cycles times, where N is the cycle number, followed by "Done.". Sample output for the given program:

1: Lather and rinse.

2: Lather and rinse.

Done.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Else print n lather and rinse numcycles times where n is
Reference No:- TGS02511930

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)