Solutions to Quiz1.c --------------------- Problem 1 --------- 1 1 0 0 1 Problem 2 --------- 5 8 6 3 Problem 3 --------- 21 19 14 9 4 Problem 4 --------- Error 1: input is not converted into integer before using it for arithmetic operations Correction: n=int(raw_input("Enter a positive integer: ")) Error 2: The output should include n. So we should be printing n before we decrement it by 1. Correction: swap the two statements in the while loop