Solution for Exercise 9-6
ex0906
#include <stdio.h>
int main()
{
int tre;
for(tre=3;tre<=100;tre=tre+3)
{
printf("%d\t",tre);
}
putchar('\n');
return(0);
}
Notes
* A correct solution for this exercise could include only modifications to Line 7, changing the first and third parts of the for statement. I went a step further and changed the variable duo to tre.
* You did not need to change the center value from 100.
Copyright © 1997-2025 by QPBC.
All rights reserved
