Programming Drill #7

Due: Wednesday, September 26
Goal:  Practice with a loop

Write a program that loops through all the numbers from 1 to 1000 and outputs the number if it is even and the sum of its digits is 26. Use any type of loop you like.

If your loop variable is named i, then (i % 10) gives you the ones digit. ((i / 10) % 10) gives you the tens digit. ((i / 100) % 10) gives you the hundreds digit.

Show your program to your instructor or email it to by the end of the day for full credit.