Solution for Exercise 9-20

ex0920

#include <stdio.h>

int main()
{
    int count;

    count = 0;
    for(;;)
    {
        printf("%d, ",count);
        count = count+1;
        if( count > 50)
            break;
    }
    putchar('\n');
    return(0);
}

Notes

* Basically the change involves only Line 8.