Monday, October 15, 2012

Java Exercise #23: Sum Till 100

This program is an exercise to use the keyword break in loops.

Exercise: Write a program that sums integers from 0 to up, until the sum is greater than or equal to 100.


Sum is: 105
Number is: 14

Download Code: Sum Till 100

No comments:

Post a Comment