Write an algorithm that find the numbers and sum of all integer between 100 and 200 which are divisible by 9.

Good thing no one has to write code for this.

In short I would not call such an algorithm (read https://en.wikipedia.org/wiki/Algorithm ) bur sure we can do that.

Title: Sum of all Integers betweeb 100 and 200 which are divisible by 9.
Set Sum = 0
Set loopvalue = 101
(loop) loopvalue < 200?
True: (test) loopvalue divisable by 9? True: Add loopvalue to SUM
False: break out of loop

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.