go to home page   go to next page

C version (modified from Assembly Language chapter 19): 02/20/2014; 01/30/15

Structured Design with C

These pages discuss how to build programs that work.

For building reliable programs, Structured Programming is vital. Structured programming has full computing power and greatly enhances program reliability and programmer productivity. Highly productive programmers instinctively write structured code.

Chapter Topics:


Examine the following program excerpt. Is it correct?

/* Compute the sum of the integers 0 through 9 */
int count=0, sum=0;

while ( count < 10 )
  sum = sum + count ;
  count= count + 1;

printf("sum = %d\n", sum );