CS99 Fall 2002 Lab #6 (10/8/02) Due 10/11 at noon. ************************* NOTICE ************************* Starting from this lab, all lab exercises should be sent to cs99@cs.cornell.edu ********************* END OF NOTICE ********************** Directions: Do all of the following problems using loops. Do not use arrays, matrix, colon, or linspace. Although it is possible to do all of these problems without loops, do not do so. The idea of this lab is to practice using loops. Problems: 1. Write a program called lab6_1.m that prints every integer between 1 and 10, inclusive. 2. Write a program called lab6_2.m that prints the even numbers between 1 and a user-input number. 3. Write a program called lab6_3.m that finds the average of all numbers input by the user. For problem 3, ask for user-input number one at a time. When the user input 0, that signifies the end of input. Do not include the last 0 in your calculation of average. Example: Enter a number (0=finish): 4 Enter a number (0=finish): 1 Enter a number (0=finish): -5 Enter a number (0=finish): 10 Enter a number (0=finish): 0 The average is 2.5