$19.99
Assignment 7
Reading and Exercises
Read Lesson 7 in Blackboard
Read this simple introduction to the increment and decrement operators:
http://www.tutorialspoint.com/cplusplus/cpp_increment_decrement_operators.htm
Read pages 267-290 (while loop)
Pay special attention to the examples, as they provide you with good models of coding and
usage.
Question
Using a while loop, how can you write a program that loops forever (infinite loop),
printing the letter "a" ?
C++ Program
Write a program that adds the positive odd numbers you enter from the keyboard
while ignoring the even numbers, and stops when a negative number or zero are
entered.
Display the sum of the accepted odd numbers.