Unformatted text preview: numbers. For example, if a user enters 45 and 51, your program will compute (45 + 46 + 47 + 48 + 49 + 50 + 51) then output the result to the screen. You may have to check whether the first number is less or greater than the second number and accordingly compute the values. Please answer the following questions and submit it along with a print-out of your code: a) Which type of Repetitive Structure did you use? Why? b) Which type of Selection Structure did you use? Why?...
View Full Document
- Spring '09
- English-language films, hard copy, selection structure, following short program